From 6b854065f70ae80e762985d5b347451e9f99c3ea Mon Sep 17 00:00:00 2001 From: dannc Date: Sat, 1 Apr 2023 11:55:08 +0700 Subject: [PATCH] [stage-5] fix tag.jenkinsfile --- jenkins/tag.jenkinsfile | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/jenkins/tag.jenkinsfile b/jenkins/tag.jenkinsfile index a9f958c..a11a045 100644 --- a/jenkins/tag.jenkinsfile +++ b/jenkins/tag.jenkinsfile @@ -48,24 +48,24 @@ podTemplate( dir('app') { echo "checkout tag ${tagName}" -// checkout scm: [ -// $class: 'GitSCM', -// userRemoteConfigs: [[ -// url: 'git@github.com:Dannecron/parcel-example-neko.git', -// credentialsId: 'github-key' -// ]], -// branches: [[name: "refs/tags/${tagName}"]]], -// poll: false + checkout scm: [ + $class: 'GitSCM', + userRemoteConfigs: [[ + url: 'git@github.com:Dannecron/parcel-example-neko.git', + credentialsId: 'github-key' + ]], + branches: [[name: "refs/tags/${tagName}"]]], + poll: false + } + + container('builder') { + dir ('app') { + echo "start building image ${image}" + sh """ + buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${image},push=true + """ + } } -// -// container('builder') { -// dir ('app') { -// echo "start building image ${image}" -// sh """ -// buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${image},push=true -// """ -// } -// } } stage('deploy') {