Skip to content

Commit b90f1c3

Browse files
committed
ci: update manual build
1 parent d7dad30 commit b90f1c3

File tree

1 file changed

+53
-23
lines changed

1 file changed

+53
-23
lines changed

.github/workflows/manual.yaml

Lines changed: 53 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
required: true
88
default: 'latest'
99
type: string
10-
env:
11-
BUILDKIT_IMAGE: jkaninda/laravel-php-fpm
1210
jobs:
1311
docker:
1412
runs-on: ubuntu-latest
@@ -31,78 +29,110 @@ jobs:
3129
with:
3230
file: "./src/docker/7.2/Dockerfile"
3331
push: true
34-
tags: "${{env.BUILDKIT_IMAGE}}:7.2"
32+
tags: "${{vars.BUILDKIT_IMAGE}}:7.2"
3533
-
3634
name: Build and push 7.3
3735
uses: docker/build-push-action@v3
3836
with:
3937
file: "./src/docker/7.3/Dockerfile"
4038
push: true
41-
tags: "${{env.BUILDKIT_IMAGE}}:7.3"
39+
tags: "${{vars.BUILDKIT_IMAGE}}:7.3"
4240
-
4341
name: Build and push 7.4
4442
uses: docker/build-push-action@v3
4543
with:
4644
file: "./src/docker/7.4/Dockerfile"
4745
push: true
48-
tags: "${{env.BUILDKIT_IMAGE}}:7.4"
46+
tags: "${{vars.BUILDKIT_IMAGE}}:7.4"
4947
-
5048
name: Build and push 8.0
5149
uses: docker/build-push-action@v3
5250
with:
5351
file: "./src/docker/8.0/Dockerfile"
5452
push: true
55-
tags: "${{env.BUILDKIT_IMAGE}}:8.0"
53+
tags: "${{vars.BUILDKIT_IMAGE}}:8.0"
5654
-
5755
name: Build and push 8.1
5856
uses: docker/build-push-action@v3
5957
with:
60-
file: "./src/docker/8.1/Dockerfile"
58+
file: "./src/docker/Dockerfile"
6159
push: true
6260
platforms: linux/amd64,linux/arm64
63-
tags: "${{env.BUILDKIT_IMAGE}}:8.1"
61+
build-args: |
62+
phpVersion=8.1
63+
tags: "${{ vars.BUILDKIT_IMAGE }}:8.1"
6464
-
65-
name: Build and push 8.2
65+
name: Build and push 8.1 alpine
6666
uses: docker/build-push-action@v3
6767
with:
68-
file: "./src/docker/8.2/Dockerfile"
68+
file: "./src/docker/Dockerfile.alpine"
6969
push: true
7070
platforms: linux/amd64,linux/arm64
71-
tags: "${{env.BUILDKIT_IMAGE}}:8.2"
71+
build-args: |
72+
phpVersion=8.1
73+
tags: "${{ vars.BUILDKIT_IMAGE }}:8.1-alpine"
7274
-
73-
name: Build and push 8.1 alpine
75+
name: Build and push 8.2
7476
uses: docker/build-push-action@v3
7577
with:
76-
file: "./src/docker/8.1/Dockerfile.alpine"
78+
file: "./src/docker/Dockerfile"
7779
push: true
7880
platforms: linux/amd64,linux/arm64
79-
tags: |
80-
"${{env.BUILDKIT_IMAGE}}:8.1-alpine"
81+
build-args: |
82+
phpVersion=8.2
83+
tags: "${{vars.BUILDKIT_IMAGE}}:8.2"
8184
-
8285
name: Build and push 8.2 alpine
8386
uses: docker/build-push-action@v3
8487
with:
85-
file: "./src/docker/8.2/Dockerfile.alpine"
88+
file: "./src/docker/Dockerfile.alpine"
8689
push: true
8790
platforms: linux/amd64,linux/arm64
91+
build-args: |
92+
phpVersion=8.2
93+
tags: "${{vars.BUILDKIT_IMAGE}}:8.2-alpine"
94+
-
95+
name: Build and push 8.3
96+
uses: docker/build-push-action@v3
97+
with:
98+
file: "./src/docker/Dockerfile"
99+
push: true
100+
platforms: linux/amd64,linux/arm64
101+
build-args: |
102+
phpVersion=8.3
88103
tags: |
89-
"${{env.BUILDKIT_IMAGE}}:8.2-alpine"
104+
"${{vars.BUILDKIT_IMAGE}}:8.3"
90105
-
91106
name: Build and push 8.3 alpine
92107
uses: docker/build-push-action@v3
93108
with:
94-
file: "./src/docker/8.3/Dockerfile.alpine"
109+
file: "./src/docker/Dockerfile.alpine"
95110
push: true
96111
platforms: linux/amd64,linux/arm64
112+
build-args: |
113+
phpVersion=8.3
97114
tags: |
98-
"${{env.BUILDKIT_IMAGE}}:8.3-alpine"
115+
"${{vars.BUILDKIT_IMAGE}}:8.3-alpine"
99116
-
100-
name: Build and push 8.3
117+
name: Build and push 8.4 alpine
118+
uses: docker/build-push-action@v3
119+
with:
120+
file: "./src/docker/Dockerfile.alpine"
121+
push: true
122+
platforms: linux/amd64,linux/arm64
123+
build-args: |
124+
phpVersion=8.4
125+
tags: |
126+
"${{vars.BUILDKIT_IMAGE}}:8.4-alpine"
127+
-
128+
name: Build and push 8.4
101129
uses: docker/build-push-action@v3
102130
with:
103-
file: "./src/docker/8.3/Dockerfile"
131+
file: "./src/docker/Dockerfile"
104132
push: true
105133
platforms: linux/amd64,linux/arm64
134+
build-args: |
135+
phpVersion=8.4
106136
tags: |
107-
"${{env.BUILDKIT_IMAGE}}:8.3"
108-
"${{env.BUILDKIT_IMAGE}}:latest"
137+
"${{vars.BUILDKIT_IMAGE}}:8.4"
138+
"${{vars.BUILDKIT_IMAGE}}:latest"

0 commit comments

Comments
 (0)