Skip to content

Commit

Permalink
Add node:18
Browse files Browse the repository at this point in the history
  • Loading branch information
Ettore Rossatto committed Nov 21, 2023
1 parent a6a1234 commit 56f76f1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
NODE: [12, 14, 16]
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 }} .

- name: Push docker image to dockerhub
run: docker login -u="${{ secrets.DOCKER_USERNAME }}" -p="${{ secrets.DOCKER_PASSWORD }}" && docker push stocard/node:${{ matrix.NODE }} && docker logout
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
NODE: [12, 14, 16]
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 }} .
8 changes: 4 additions & 4 deletions .github/workflows/scheduled-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ name: Scheduled Update
on:
schedule:
- cron: '0 10 * * MON' # https://crontab.guru/#0_10_*_*_MON

jobs:
update:
name: Update Nodejs based docker image
runs-on: ubuntu-latest
strategy:
matrix:
NODE: [12, 14, 16]
NODE: [12, 14, 16, 18]

steps:
- uses: actions/checkout@v2
Expand All @@ -28,7 +28,7 @@ jobs:
echo "Latest version is ${LATEST_NODE_VERSION}"
echo "LATEST_NODE_VERSION=${LATEST_NODE_VERSION}" >> $GITHUB_ENV
echo "LATEST_NODE_VERSION=${LATEST_NODE_VERSION}" >> $GITHUB_ENV
- name: Insert node version into Dockerfile
run: |
Expand All @@ -39,7 +39,7 @@ jobs:

- name: Build & Tag docker image for ${{ env.LATEST_NODE_VERSION }}
run: docker build -t stocard/node:${LATEST_NODE_VERSION} .

- name: Push docker image ${{ env.LATEST_NODE_VERSION }} to dockerhub
run: |
echo "Pushing docker stocard/node:${LATEST_NODE_VERSION} to dockerhub"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Current base images:
- 12
- 14
- 16
- 18

### More information

Expand Down

0 comments on commit 56f76f1

Please sign in to comment.