Skip to content

Commit

Permalink
fix: added the Add CI matrix for Multiple version of node #4
Browse files Browse the repository at this point in the history
  • Loading branch information
shivani446 committed Feb 9, 2024
1 parent f47ddfc commit 415033c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
build:
name: Build and Push Image
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18, 20] # List of Node.js versions to test
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -36,7 +40,7 @@ jobs:
uses: docker/build-push-action@v5
with:
build-args: |
NODE_VERSION=${{ env.NODE_VERSION }}
NODE_VERSION=${{ matrix.node-version }}
ALPINE_VERSION=${{ env.ALPINE_VERSION }}
context: .
push: ${{ github.ref_name == 'main' }}
Expand Down

0 comments on commit 415033c

Please sign in to comment.