Merge pull request #13 from Stocard/node-18 #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image Build & Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
NODE: [12, 14, 16, 18] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Insert node version into Dockerfile | |
run: sed -i "s/{VERSION}/${{ matrix.NODE }}/g" ./Dockerfile | |
- name: Build the Docker image | |
run: docker build -t stocard/node:${{ matrix.NODE }} . |