Skip to content

Commit 6a14394

Browse files
committed
Fix CI
1 parent 98577ad commit 6a14394

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff 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)
@@ -74,15 +76,6 @@ jobs:
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'

0 commit comments

Comments
 (0)