Skip to content

Commit

Permalink
fix conditional matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciojs committed Oct 25, 2023
1 parent b838c49 commit deb9798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ jobs:

- name: Build and export to Docker (Node)
uses: docker/build-push-action@v5
if: ${{ matrix.type }} == ''
if: ${{ matrix.type == '' }}
with:
context: ${{ matrix.version }}-node${{ matrix.type }}
load: true
tags: kooldev/php:${{ matrix.version }}-node${{ matrix.type }}

- name: Tests (Node)
if: ${{ matrix.type }} == ''
if: ${{ matrix.type == '' }}
run: |
docker run kooldev/php:${{ matrix.version }}-node${{ matrix.type }} node -v
docker run kooldev/php:${{ matrix.version }}-node${{ matrix.type }} npm -v
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:

- name: Build and push (Node)
uses: docker/build-push-action@v5
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-php' && ${{ matrix.type }} == ''
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-php' && ${{ matrix.type == '' }}
with:
context: ${{ matrix.version }}-node${{ matrix.type }}
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit deb9798

Please sign in to comment.