From 56f76f19d6c8d0c3499c38f9b50efc086ff64860 Mon Sep 17 00:00:00 2001 From: Ettore Rossatto Date: Tue, 21 Nov 2023 14:19:46 +0100 Subject: [PATCH 1/2] Add node:18 --- .github/workflows/docker-build-publish.yml | 6 +++--- .github/workflows/docker-build-test.yml | 4 ++-- .github/workflows/scheduled-update.yml | 8 ++++---- README.md | 1 + 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-build-publish.yml b/.github/workflows/docker-build-publish.yml index cbccf99..5c17cc1 100644 --- a/.github/workflows/docker-build-publish.yml +++ b/.github/workflows/docker-build-publish.yml @@ -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 diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml index 96debdd..1b5e36b 100644 --- a/.github/workflows/docker-build-test.yml +++ b/.github/workflows/docker-build-test.yml @@ -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 }} . diff --git a/.github/workflows/scheduled-update.yml b/.github/workflows/scheduled-update.yml index 1eed029..e35b604 100644 --- a/.github/workflows/scheduled-update.yml +++ b/.github/workflows/scheduled-update.yml @@ -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 @@ -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: | @@ -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" diff --git a/README.md b/README.md index 3b6d671..2cc5051 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Current base images: - 12 - 14 - 16 +- 18 ### More information From 6c69189f637f927fdae32e317da0a1e7377b912e Mon Sep 17 00:00:00 2001 From: Ettore Rossatto Date: Tue, 21 Nov 2023 14:23:07 +0100 Subject: [PATCH 2/2] Temporary cron change --- .github/workflows/scheduled-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scheduled-update.yml b/.github/workflows/scheduled-update.yml index e35b604..4163327 100644 --- a/.github/workflows/scheduled-update.yml +++ b/.github/workflows/scheduled-update.yml @@ -3,7 +3,7 @@ name: Scheduled Update # This event is triggered every Monday at 10:00 UTC on: schedule: - - cron: '0 10 * * MON' # https://crontab.guru/#0_10_*_*_MON + - cron: '0 15 * * TUE' # https://crontab.guru/#0_10_*_*_MON jobs: update: