7
7
required : true
8
8
default : ' latest'
9
9
type : string
10
- env :
11
- BUILDKIT_IMAGE : jkaninda/laravel-php-fpm
12
10
jobs :
13
11
docker :
14
12
runs-on : ubuntu-latest
@@ -31,78 +29,110 @@ jobs:
31
29
with :
32
30
file : " ./src/docker/7.2/Dockerfile"
33
31
push : true
34
- tags : " ${{env .BUILDKIT_IMAGE}}:7.2"
32
+ tags : " ${{vars .BUILDKIT_IMAGE}}:7.2"
35
33
-
36
34
name : Build and push 7.3
37
35
uses : docker/build-push-action@v3
38
36
with :
39
37
file : " ./src/docker/7.3/Dockerfile"
40
38
push : true
41
- tags : " ${{env .BUILDKIT_IMAGE}}:7.3"
39
+ tags : " ${{vars .BUILDKIT_IMAGE}}:7.3"
42
40
-
43
41
name : Build and push 7.4
44
42
uses : docker/build-push-action@v3
45
43
with :
46
44
file : " ./src/docker/7.4/Dockerfile"
47
45
push : true
48
- tags : " ${{env .BUILDKIT_IMAGE}}:7.4"
46
+ tags : " ${{vars .BUILDKIT_IMAGE}}:7.4"
49
47
-
50
48
name : Build and push 8.0
51
49
uses : docker/build-push-action@v3
52
50
with :
53
51
file : " ./src/docker/8.0/Dockerfile"
54
52
push : true
55
- tags : " ${{env .BUILDKIT_IMAGE}}:8.0"
53
+ tags : " ${{vars .BUILDKIT_IMAGE}}:8.0"
56
54
-
57
55
name : Build and push 8.1
58
56
uses : docker/build-push-action@v3
59
57
with :
60
- file : " ./src/docker/8.1/ Dockerfile"
58
+ file : " ./src/docker/Dockerfile"
61
59
push : true
62
60
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"
64
64
-
65
- name : Build and push 8.2
65
+ name : Build and push 8.1 alpine
66
66
uses : docker/build-push-action@v3
67
67
with :
68
- file : " ./src/docker/8.2/ Dockerfile"
68
+ file : " ./src/docker/Dockerfile.alpine "
69
69
push : true
70
70
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"
72
74
-
73
- name : Build and push 8.1 alpine
75
+ name : Build and push 8.2
74
76
uses : docker/build-push-action@v3
75
77
with :
76
- file : " ./src/docker/8.1/ Dockerfile.alpine "
78
+ file : " ./src/docker/Dockerfile"
77
79
push : true
78
80
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"
81
84
-
82
85
name : Build and push 8.2 alpine
83
86
uses : docker/build-push-action@v3
84
87
with :
85
- file : " ./src/docker/8.2/ Dockerfile.alpine"
88
+ file : " ./src/docker/Dockerfile.alpine"
86
89
push : true
87
90
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
88
103
tags : |
89
- "${{env .BUILDKIT_IMAGE}}:8.2-alpine "
104
+ "${{vars .BUILDKIT_IMAGE}}:8.3 "
90
105
-
91
106
name : Build and push 8.3 alpine
92
107
uses : docker/build-push-action@v3
93
108
with :
94
- file : " ./src/docker/8.3/ Dockerfile.alpine"
109
+ file : " ./src/docker/Dockerfile.alpine"
95
110
push : true
96
111
platforms : linux/amd64,linux/arm64
112
+ build-args : |
113
+ phpVersion=8.3
97
114
tags : |
98
- "${{env .BUILDKIT_IMAGE}}:8.3-alpine"
115
+ "${{vars .BUILDKIT_IMAGE}}:8.3-alpine"
99
116
-
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
101
129
uses : docker/build-push-action@v3
102
130
with :
103
- file : " ./src/docker/8.3/ Dockerfile"
131
+ file : " ./src/docker/Dockerfile"
104
132
push : true
105
133
platforms : linux/amd64,linux/arm64
134
+ build-args : |
135
+ phpVersion=8.4
106
136
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