From 2368af6f4f4fffbf3b9efc300b69ccce501b3e13 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Fri, 7 Mar 2025 00:20:57 +0800 Subject: [PATCH] feat(ci): update ci-essentials images to version 0.0.3 and install specific Node.js version in Dockerfile Signed-off-by: zhenyus --- first-class-pipeline/vars/executeFreeleapsPipeline.groovy | 6 +++--- infra/ci-essentials/Dockerfile | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy index 4ff7d01a..9dc7e163 100644 --- a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy +++ b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy @@ -329,7 +329,7 @@ spec: containers: [ containerTemplate( name: 'semantic-releasing', - image: 'freeleaps/ci-essentials:0.0.2', + image: 'freeleaps/ci-essentials:0.0.3', ttyEnabled: true, command: 'sleep', args: 'infinity' @@ -600,7 +600,7 @@ spec: containers: [ containerTemplate( name: "argo-app-version-updater", - image: "freeleaps/ci-essentials:0.0.2", + image: "freeleaps/ci-essentials:0.0.3", ttyEnabled: true, command: 'sleep', args: 'infinity' @@ -673,7 +673,7 @@ spec: effect: "NoSchedule" containers: - name: commit-message-linter - image: docker.io/freeleaps/ci-essentials:0.0.2 + image: docker.io/freeleaps/ci-essentials:0.0.3 command: - cat tty: true diff --git a/infra/ci-essentials/Dockerfile b/infra/ci-essentials/Dockerfile index d1ee22b5..d2bb52f3 100644 --- a/infra/ci-essentials/Dockerfile +++ b/infra/ci-essentials/Dockerfile @@ -42,7 +42,10 @@ RUN mkdir -p "$NVM_DIR"; \ bash \ ; \ source $NVM_DIR/nvm.sh; \ - nvm install --lts --latest-npm + nvm install v22.14.0 --latest-npm \ + ln -s $NVM_DIR/versions/node/v22.14.0/bin/node /usr/local/bin/node; \ + ln -s $NVM_DIR/versions/node/v22.14.0/bin/npm /usr/local/bin/npm; \ + ln -s $NVM_DIR/versions/node/v22.14.0/bin/npx /usr/local/bin/npx # Install semantic release and conventional commits cli