From 603f1fc2f5fe926e64adabced09ca5febc05fbe5 Mon Sep 17 00:00:00 2001 From: Robin Bourianes Date: Thu, 18 Jul 2024 15:35:18 +0200 Subject: [PATCH] build: moving to node 20 --- app.Dockerfile | 7 +++++-- scripts/init_runner.sh | 2 +- scripts/setup_workspace.sh | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app.Dockerfile b/app.Dockerfile index 2acee818..8a673bd9 100644 --- a/app.Dockerfile +++ b/app.Dockerfile @@ -1,7 +1,10 @@ +ARG DEBIAN_VERSION=bookworm +ARG NODE_VERSION=20 + ## Use a builder ## -FROM node:16-bookworm-slim as Builder +FROM node:${NODE_VERSION}-${DEBIAN_VERSION}-slim as Builder LABEL maintainer="contact@kalisio.xyz" # git is required to pull some node packages from github @@ -35,7 +38,7 @@ RUN \ ## Copy to final container ## -FROM node:16-bookworm-slim +FROM node:${NODE_VERSION}-${DEBIAN_VERSION}-slim LABEL maintainer="contact@kalisio.xyz" ARG APP diff --git a/scripts/init_runner.sh b/scripts/init_runner.sh index 10013e43..1e44dffb 100755 --- a/scripts/init_runner.sh +++ b/scripts/init_runner.sh @@ -12,7 +12,7 @@ THIS_DIR=$(dirname "$THIS_FILE") ### Github Actions init_github_build_app() { - install_reqs age sops nvm node16 + install_reqs age sops nvm node20 } begin_group "Init $CI_ID for $JOB_ID" diff --git a/scripts/setup_workspace.sh b/scripts/setup_workspace.sh index fb1f2b4d..4baff705 100755 --- a/scripts/setup_workspace.sh +++ b/scripts/setup_workspace.sh @@ -14,7 +14,7 @@ WORKSPACE_DIR="$(dirname "$ROOT_DIR")" WORKSPACE_BRANCH= WORKSPACE_TAG= -WORKSPACE_NODE=16 +WORKSPACE_NODE=20 WORKSPACE_KIND=klifull OPT_LIST="n:k:" if [ "$CI" != true ]; then