From f13ad45fb51ae04f4203920af43f524c51247e74 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Thu, 6 Mar 2025 18:03:27 +0800 Subject: [PATCH] feat(ci): update ci-essentials images to version 0.0.2 in pipeline and Dockerfile Signed-off-by: zhenyus --- first-class-pipeline/vars/executeFreeleapsPipeline.groovy | 6 +++--- infra/ci-essentials/Dockerfile | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy index 7e190b55..4ff7d01a 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.1', + image: 'freeleaps/ci-essentials:0.0.2', ttyEnabled: true, command: 'sleep', args: 'infinity' @@ -600,7 +600,7 @@ spec: containers: [ containerTemplate( name: "argo-app-version-updater", - image: "freeleaps/ci-essentials:0.0.1", + image: "freeleaps/ci-essentials:0.0.2", 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.1 + image: docker.io/freeleaps/ci-essentials:0.0.2 command: - cat tty: true diff --git a/infra/ci-essentials/Dockerfile b/infra/ci-essentials/Dockerfile index 24bd2f72..d1ee22b5 100644 --- a/infra/ci-essentials/Dockerfile +++ b/infra/ci-essentials/Dockerfile @@ -44,12 +44,10 @@ RUN mkdir -p "$NVM_DIR"; \ source $NVM_DIR/nvm.sh; \ nvm install --lts --latest-npm -# Add node and npm to path so the commands are available -ENV NODE_PATH=$NVM_DIR/versions/v$NODE_VERSION/lib/node_modules -ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH # Install semantic release and conventional commits cli -RUN npm install -g \ +RUN npm config set prefix /usr/local; \ + npm install -g \ semantic-release \ @semantic-release/changelog \ @semantic-release/git \ @@ -60,6 +58,4 @@ RUN npm install -g \ @commitlint/config-conventional \ @commitlint/config-angular -RUN mkdir -p /workspace -WORKDIR /workspace USER root