Skip to content

Commit

Permalink
upd: set latest node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
twocolors committed Apr 23, 2024
1 parent 63d8a66 commit 3594911
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ on:
jobs:
build:
env:
NODE_LATEST: 16
NODE_LATEST: 18
runs-on: ubuntu-latest

strategy:
matrix:
node: [ 14, 16, 18 ]
suffix: [ "" ]
node: [ 16, 18, 20 ]

steps:
- name: 1-checkout
Expand All @@ -23,14 +22,9 @@ jobs:
- name: 2-setup-image-setting
id: setting
run: |
SUFFIX=""
if [ "${{ matrix.suffix }}" != "" ]; then
SUFFIX="-${{ matrix.suffix}}"
fi
TAGS="ghcr.io/${{ github.repository }}:${{ matrix.node }}$SUFFIX"
TAGS="ghcr.io/${{ github.repository }}:${{ matrix.node }}"
if [ "${{ matrix.node }}" == "${{ env.NODE_LATEST }}" ]; then
TAGS="$TAGS,ghcr.io/${{ github.repository }}:latest$SUFFIX"
TAGS="$TAGS,ghcr.io/${{ github.repository }}:latest"
fi
echo "current tags $TAGS"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG NODE_VERSION=16
ARG NODE_VERSION=18

FROM node:${NODE_VERSION}-alpine AS build

Expand Down

0 comments on commit 3594911

Please sign in to comment.