Skip to content

Commit

Permalink
fix ci/cd build/test for new node flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciojs committed Oct 25, 2023
1 parent 670abce commit b838c49
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ jobs:
load: true
tags: kooldev/php:${{ matrix.version }}-node${{ matrix.type }}

- name: Tests (Node)
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
docker run kooldev/php:${{ matrix.version }}-node${{ matrix.type }} yarn -v
- name: Tests (nginx)
run: |
docker run kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }} php -v
Expand All @@ -97,6 +104,15 @@ jobs:
push: true
tags: kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }}

- 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 }} == ''
with:
context: ${{ matrix.version }}-node${{ matrix.type }}
platforms: linux/amd64,linux/arm64
push: true
tags: kooldev/php:${{ matrix.version }}-node${{ matrix.type }}

trigger-build-wordpress:
name: Trigger Wordpress Build
runs-on: ubuntu-latest
Expand Down

0 comments on commit b838c49

Please sign in to comment.