@@ -3,160 +3,124 @@ name: Build Docker Image
33on :
44 push :
55 branches :
6- - ' master'
6+ - " master"
77
88jobs :
99 docker :
1010 runs-on : ubuntu-latest
1111 steps :
12- -
13- name : Checkout
12+ - name : Checkout
1413 uses : actions/checkout@v2
15- -
16- name : Set up QEMU
14+ - name : Set up QEMU
1715 uses : docker/setup-qemu-action@v1
18- -
19- name : Set up Docker Buildx
16+ - name : Set up Docker Buildx
2017 uses : docker/setup-buildx-action@v1
21- -
22- name : Login to DockerHub
18+ - name : Login to DockerHub
2319 uses : docker/login-action@v1
2420 with :
2521 username : ${{ secrets.DOCKERHUB_USERNAME }}
2622 password : ${{ secrets.DOCKERHUB_TOKEN }}
27- -
28- name : Build And Push 7.1-alpine
23+ - name : Build And Push 7.1-alpine
2924 uses : docker/build-push-action@v2
3025 with :
3126 context : .
3227 file : ./images/7.1/Dockerfile-alpine
3328 push : true
3429 tags : umutphp/php-docker-images-for-ci:7.1-alpine
35- -
36- name : Build And Push 7.2-alpine
30+ - name : Build And Push 7.2-alpine
3731 uses : docker/build-push-action@v2
3832 with :
3933 context : .
4034 file : ./images/7.2/Dockerfile-alpine
4135 push : true
4236 tags : umutphp/php-docker-images-for-ci:7.2-alpine
43- -
44- name : Build And Push 7.3-alpine
37+ - name : Build And Push 7.3-alpine
4538 uses : docker/build-push-action@v2
4639 with :
4740 context : .
4841 file : ./images/7.3/Dockerfile-alpine
4942 push : true
5043 tags : umutphp/php-docker-images-for-ci:7.3-alpine
51- -
52- name : Build And Push 7.4-alpine
44+ - name : Build And Push 7.4-alpine
5345 uses : docker/build-push-action@v2
5446 with :
5547 context : .
5648 file : ./images/7.4/Dockerfile-alpine
5749 push : true
5850 tags : umutphp/php-docker-images-for-ci:7.4-alpine
59- -
60- name : Build And Push 8.0-alpine
51+ - name : Build And Push 8.0-alpine
6152 uses : docker/build-push-action@v2
6253 with :
6354 context : .
6455 file : ./images/8.0/Dockerfile-alpine
6556 push : true
6657 tags : umutphp/php-docker-images-for-ci:8.0-alpine
67- -
68- name : Build And Push 8.1-alpine
58+ - name : Build And Push 8.1-alpine
6959 uses : docker/build-push-action@v2
7060 with :
7161 context : .
7262 file : ./images/8.1/Dockerfile-alpine
7363 push : true
7464 tags : umutphp/php-docker-images-for-ci:8.1-alpine
75- -
76- name : Build And Push 8.2-alpine
65+ - name : Build And Push 8.2-alpine
7766 uses : docker/build-push-action@v2
7867 with :
7968 context : .
8069 file : ./images/8.2/Dockerfile-alpine
8170 push : true
8271 tags : umutphp/php-docker-images-for-ci:8.2-alpine
83- -
84- name : Build And Push 8.3-alpine
72+ - name : Build And Push 8.3-alpine
8573 uses : docker/build-push-action@v2
8674 with :
8775 context : .
8876 file : ./images/8.3/Dockerfile-alpine
8977 push : true
90- tags : umutphp/php-docker-images-for-ci:8.3-alpine
91- -
92- name : Build And Push latest-alpine
93- uses : docker/build-push-action@v2
94- with :
95- context : .
96- file : ./images/8.2/Dockerfile-alpine
97- push : true
98- tags : umutphp/php-docker-images-for-ci:latest-alpine
99- -
100- name : Build And Push 7.1
78+ tags : umutphp/php-docker-images-for-ci:8.3-alpine,umutphp/php-docker-images-for-ci:latest-alpine
79+ - name : Build And Push 7.1
10180 uses : docker/build-push-action@v2
10281 with :
10382 context : ./images/7.1/
10483 push : true
10584 tags : umutphp/php-docker-images-for-ci:7.1
106- -
107- name : Build And Push 7.2
85+ - name : Build And Push 7.2
10886 uses : docker/build-push-action@v2
10987 with :
11088 context : ./images/7.2/
11189 push : true
11290 tags : umutphp/php-docker-images-for-ci:7.2
113- -
114- name : Build And Push 7.3
91+ - name : Build And Push 7.3
11592 uses : docker/build-push-action@v2
11693 with :
11794 context : ./images/7.3/
11895 push : true
11996 tags : umutphp/php-docker-images-for-ci:7.3
120- -
121- name : Build And Push 7.4
97+ - name : Build And Push 7.4
12298 uses : docker/build-push-action@v2
12399 with :
124100 context : ./images/7.4/
125101 push : true
126102 tags : umutphp/php-docker-images-for-ci:7.4
127- -
128- name : Build And Push 8.0
103+ - name : Build And Push 8.0
129104 uses : docker/build-push-action@v2
130105 with :
131106 context : ./images/8.0/
132107 push : true
133108 tags : umutphp/php-docker-images-for-ci:8.0
134- -
135- name : Build And Push 8.1
109+ - name : Build And Push 8.1
136110 uses : docker/build-push-action@v2
137111 with :
138112 context : ./images/8.1/
139113 push : true
140114 tags : umutphp/php-docker-images-for-ci:8.1
141- -
142- name : Build And Push 8.2
115+ - name : Build And Push 8.2
143116 uses : docker/build-push-action@v2
144117 with :
145118 context : ./images/8.2/
146119 push : true
147120 tags : umutphp/php-docker-images-for-ci:8.2
148- -
149- name : Build And Push 8.3
121+ - name : Build And Push 8.3
150122 uses : docker/build-push-action@v2
151123 with :
152124 context : ./images/8.3/
153125 push : true
154- tags : umutphp/php-docker-images-for-ci:8.3
155- -
156- name : Build And Push latest
157- uses : docker/build-push-action@v2
158- with :
159- context : ./images/8.2/
160- push : true
161- tags : umutphp/php-docker-images-for-ci:latest
162-
126+ tags : umutphp/php-docker-images-for-ci:8.3,umutphp/php-docker-images-for-ci:latest
0 commit comments