File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,11 +46,13 @@ jobs:
4646 docker run kooldev/php:${{ matrix.version }}${{ matrix.type }} php -m | grep readline
4747 docker run -e ENABLE_XDEBUG=true kooldev/php:${{ matrix.version }}${{ matrix.type }} php -m
4848
49- - name : Build and export to Docker
49+ - name : Build and push
5050 uses : docker/build-push-action@v3
51+ if : github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-php'
5152 with :
5253 context : ${{ matrix.version }}${{ matrix.type }}
53- load : true
54+ platforms : linux/amd64,linux/arm64
55+ push : true
5456 tags : kooldev/php:${{ matrix.version }}${{ matrix.type }}
5557
5658 - name : Build and export to Docker (nginx)
7476 docker run kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }} nginx -v
7577 docker run kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }} supervisord version
7678
77- - name : Build and push
78- uses : docker/build-push-action@v3
79- if : github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-php'
80- with :
81- context : ${{ matrix.version }}${{ matrix.type }}
82- platforms : linux/amd64,linux/arm64
83- push : true
84- tags : kooldev/php:${{ matrix.version }}${{ matrix.type }}
85-
8679 - name : Build and push (nginx)
8780 uses : docker/build-push-action@v3
8881 if : github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-php'
You can’t perform that action at this time.
0 commit comments