Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 18 #13

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }} .
10 changes: 5 additions & 5 deletions .github/workflows/scheduled-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ 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:
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
Loading