Skip to content

Commit b838c49

Browse files
committed
fix ci/cd build/test for new node flavor
1 parent 670abce commit b838c49

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ jobs:
7474
load: true
7575
tags: kooldev/php:${{ matrix.version }}-node${{ matrix.type }}
7676

77+
- name: Tests (Node)
78+
if: ${{ matrix.type }} == ''
79+
run: |
80+
docker run kooldev/php:${{ matrix.version }}-node${{ matrix.type }} node -v
81+
docker run kooldev/php:${{ matrix.version }}-node${{ matrix.type }} npm -v
82+
docker run kooldev/php:${{ matrix.version }}-node${{ matrix.type }} yarn -v
83+
7784
- name: Tests (nginx)
7885
run: |
7986
docker run kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }} php -v
@@ -97,6 +104,15 @@ jobs:
97104
push: true
98105
tags: kooldev/php:${{ matrix.version }}-nginx${{ matrix.type }}
99106

107+
- name: Build and push (Node)
108+
uses: docker/build-push-action@v5
109+
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-php' && ${{ matrix.type }} == ''
110+
with:
111+
context: ${{ matrix.version }}-node${{ matrix.type }}
112+
platforms: linux/amd64,linux/arm64
113+
push: true
114+
tags: kooldev/php:${{ matrix.version }}-node${{ matrix.type }}
115+
100116
trigger-build-wordpress:
101117
name: Trigger Wordpress Build
102118
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)