Skip to content

Commit 22368b1

Browse files
committed
Added ZTS variants to images
1 parent b6cd122 commit 22368b1

File tree

4 files changed

+104
-28
lines changed

4 files changed

+104
-28
lines changed

.github/workflows/php81.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
#
2+
name: Build PHP 8.1
3+
4+
# Configures this workflow to run every time a release is created.
15
on:
26
release:
37
types:
48
- created
59

6-
name: Build PHP 8.1
10+
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
11+
env:
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: ${{ github.repository }}
714

815
jobs:
916
build:
1017
runs-on: ubuntu-latest
18+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
19+
permissions:
20+
contents: read
21+
packages: write
22+
attestations: write
23+
id-token: write
1124

1225
strategy:
1326
matrix:
@@ -30,9 +43,9 @@ jobs:
3043
- name: Login to GitHub Container Registry
3144
uses: docker/login-action@v3
3245
with:
33-
registry: ghcr.io
34-
username: ${{ secrets.GHCR_LOGIN }}
35-
password: ${{ secrets.GHCR_PASSWORD }}
46+
registry: ${{ env.REGISTRY }}
47+
username: ${{ github.actor }}
48+
password: ${{ secrets.GITHUB_TOKEN }}
3649

3750
- name: Build and push PHP 8.1
3851
uses: docker/build-push-action@v2
@@ -47,6 +60,12 @@ jobs:
4760

4861
build_xdebug:
4962
runs-on: ubuntu-latest
63+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
64+
permissions:
65+
contents: read
66+
packages: write
67+
attestations: write
68+
id-token: write
5069

5170
strategy:
5271
matrix:
@@ -69,9 +88,9 @@ jobs:
6988
- name: Login to GitHub Container Registry
7089
uses: docker/login-action@v3
7190
with:
72-
registry: ghcr.io
73-
username: ${{ secrets.GHCR_LOGIN }}
74-
password: ${{ secrets.GHCR_PASSWORD }}
91+
registry: ${{ env.REGISTRY }}
92+
username: ${{ github.actor }}
93+
password: ${{ secrets.GITHUB_TOKEN }}
7594

7695
- name: Build and push PHP 8.1 with Xdebug
7796
uses: docker/build-push-action@v2

.github/workflows/php82.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
#
2+
name: Build PHP 8.2
3+
4+
# Configures this workflow to run every time a release is created.
15
on:
26
release:
37
types:
48
- created
59

6-
name: Build PHP 8.2
10+
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
11+
env:
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: ${{ github.repository }}
714

815
jobs:
916
build:
1017
runs-on: ubuntu-latest
18+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
19+
permissions:
20+
contents: read
21+
packages: write
22+
attestations: write
23+
id-token: write
1124

1225
strategy:
1326
matrix:
@@ -30,9 +43,9 @@ jobs:
3043
- name: Login to GitHub Container Registry
3144
uses: docker/login-action@v3
3245
with:
33-
registry: ghcr.io
34-
username: ${{ secrets.GHCR_LOGIN }}
35-
password: ${{ secrets.GHCR_PASSWORD }}
46+
registry: ${{ env.REGISTRY }}
47+
username: ${{ github.actor }}
48+
password: ${{ secrets.GITHUB_TOKEN }}
3649

3750
- name: Build and push PHP 8.2
3851
uses: docker/build-push-action@v2
@@ -47,6 +60,12 @@ jobs:
4760

4861
build_xdebug:
4962
runs-on: ubuntu-latest
63+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
64+
permissions:
65+
contents: read
66+
packages: write
67+
attestations: write
68+
id-token: write
5069

5170
strategy:
5271
matrix:
@@ -69,9 +88,9 @@ jobs:
6988
- name: Login to GitHub Container Registry
7089
uses: docker/login-action@v3
7190
with:
72-
registry: ghcr.io
73-
username: ${{ secrets.GHCR_LOGIN }}
74-
password: ${{ secrets.GHCR_PASSWORD }}
91+
registry: ${{ env.REGISTRY }}
92+
username: ${{ github.actor }}
93+
password: ${{ secrets.GITHUB_TOKEN }}
7594

7695
- name: Build and push PHP 8.2 with Xdebug
7796
uses: docker/build-push-action@v2

.github/workflows/php83.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
#
2+
name: Build PHP 8.3
3+
4+
# Configures this workflow to run every time a release is created.
15
on:
26
release:
37
types:
48
- created
59

6-
name: Build PHP 8.3
10+
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
11+
env:
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: ${{ github.repository }}
714

815
jobs:
916
build:
1017
runs-on: ubuntu-latest
18+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
19+
permissions:
20+
contents: read
21+
packages: write
22+
attestations: write
23+
id-token: write
1124

1225
strategy:
1326
matrix:
@@ -30,9 +43,9 @@ jobs:
3043
- name: Login to GitHub Container Registry
3144
uses: docker/login-action@v3
3245
with:
33-
registry: ghcr.io
34-
username: ${{ secrets.GHCR_LOGIN }}
35-
password: ${{ secrets.GHCR_PASSWORD }}
46+
registry: ${{ env.REGISTRY }}
47+
username: ${{ github.actor }}
48+
password: ${{ secrets.GITHUB_TOKEN }}
3649

3750
- name: Build and push PHP 8.3
3851
uses: docker/build-push-action@v2
@@ -47,6 +60,12 @@ jobs:
4760

4861
build_xdebug:
4962
runs-on: ubuntu-latest
63+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
64+
permissions:
65+
contents: read
66+
packages: write
67+
attestations: write
68+
id-token: write
5069

5170
strategy:
5271
matrix:
@@ -69,9 +88,9 @@ jobs:
6988
- name: Login to GitHub Container Registry
7089
uses: docker/login-action@v3
7190
with:
72-
registry: ghcr.io
73-
username: ${{ secrets.GHCR_LOGIN }}
74-
password: ${{ secrets.GHCR_PASSWORD }}
91+
registry: ${{ env.REGISTRY }}
92+
username: ${{ github.actor }}
93+
password: ${{ secrets.GITHUB_TOKEN }}
7594

7695
- name: Build and push PHP 8.3 with Xdebug
7796
uses: docker/build-push-action@v2

.github/workflows/php84.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
#
2+
name: Build PHP 8.4
3+
4+
# Configures this workflow to run every time a release is created.
15
on:
26
release:
37
types:
48
- created
59

6-
name: Build PHP 8.4
10+
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
11+
env:
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: ${{ github.repository }}
714

815
jobs:
916
build:
1017
runs-on: ubuntu-latest
18+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
19+
permissions:
20+
contents: read
21+
packages: write
22+
attestations: write
23+
id-token: write
1124

1225
strategy:
1326
matrix:
@@ -30,9 +43,9 @@ jobs:
3043
- name: Login to GitHub Container Registry
3144
uses: docker/login-action@v3
3245
with:
33-
registry: ghcr.io
34-
username: ${{ secrets.GHCR_LOGIN }}
35-
password: ${{ secrets.GHCR_PASSWORD }}
46+
registry: ${{ env.REGISTRY }}
47+
username: ${{ github.actor }}
48+
password: ${{ secrets.GITHUB_TOKEN }}
3649

3750
- name: Build and push PHP 8.4
3851
uses: docker/build-push-action@v2
@@ -47,6 +60,12 @@ jobs:
4760

4861
build_xdebug:
4962
runs-on: ubuntu-latest
63+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
64+
permissions:
65+
contents: read
66+
packages: write
67+
attestations: write
68+
id-token: write
5069

5170
strategy:
5271
matrix:
@@ -69,9 +88,9 @@ jobs:
6988
- name: Login to GitHub Container Registry
7089
uses: docker/login-action@v3
7190
with:
72-
registry: ghcr.io
73-
username: ${{ secrets.GHCR_LOGIN }}
74-
password: ${{ secrets.GHCR_PASSWORD }}
91+
registry: ${{ env.REGISTRY }}
92+
username: ${{ github.actor }}
93+
password: ${{ secrets.GITHUB_TOKEN }}
7594

7695
- name: Build and push PHP 8.4 with Xdebug
7796
uses: docker/build-push-action@v2

0 commit comments

Comments
 (0)