From 6f37fb1802bd8aa64050873ad0e1b0f0096bcfe6 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Mon, 16 Feb 2026 17:29:26 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bc94989..4b94ccf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,19 +20,19 @@ pipeline { stage('Build Image') { steps { - // We use Kaniko to build the image safely inside Kubernetes + // Use ${WORKSPACE} instead of . to avoid the malformed name error sh ''' docker run --rm \ - -v .:/workspace \ - -v /home/jenkins/.docker/config.json:/kaniko/.docker/config.json \ + -v ${WORKSPACE}:/workspace \ gcr.io/kaniko-project/executor:latest \ --dockerfile /workspace/Dockerfile \ --context /workspace \ --destination harbor.myriadcara.com/library/nodejs-app:1 \ - --destination harbor.myriadcara.com/library/nodejs-app:latest + --destination harbor.myriadcara.com/library/nodejs-app:latest \ + --insecure --skip-tls-verify ''' - } } +} stage('Push to Harbor') { steps {