@@ -17,15 +17,30 @@ jobs:
17
17
matrix :
18
18
php_version : ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0"]
19
19
steps :
20
- - uses : actions/checkout@v2
21
- - name : Build the Docker image
22
- run : |
23
- docker build . --file Dockerfile-${{ matrix.php_version }} --tag laradock/php-fpm:${{ env.TAG_PREFIX }}-${{ matrix.php_version }}
24
- docker image ls
20
+ - name : Checkout
21
+ uses : actions/checkout@v2
22
+ - name : Set up QEMU
23
+ uses : docker/setup-qemu-action@v1
24
+ with :
25
+ platforms : linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
26
+ - name : Build and push
27
+ uses : docker/build-push-action@v2
28
+ with :
29
+ file : Dockerfile-${{ matrix.php_version }}
30
+ push : false
31
+ tags : laradock/php-fpm:${{ matrix.php_version }}
32
+ - name : check
33
+ run : |
34
+ docker image ls
25
35
26
- - name : Push image to Docker hub
27
- if : ${{ success() && (github.repository == 'laradock/php-fpm') && (github.ref == 'refs/heads/master') }}
28
- run : |
29
- echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin
30
- docker push laradock/php-fpm:${{ env.TAG_PREFIX }}-${{ matrix.php_version }}
31
- docker logout
36
+ - name : Build the Docker image
37
+ run : |
38
+ docker build . --file Dockerfile-${{ matrix.php_version }} --tag laradock/php-fpm:${{ env.TAG_PREFIX }}-${{ matrix.php_version }}
39
+ docker image ls
40
+
41
+ - name : Push image to Docker hub
42
+ if : ${{ success() && (github.repository == 'laradock/php-fpm') && (github.ref == 'refs/heads/master') }}
43
+ run : |
44
+ echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin
45
+ docker push laradock/php-fpm:${{ env.TAG_PREFIX }}-${{ matrix.php_version }}
46
+ docker logout
0 commit comments