mirror of
https://github.com/Dannecron/netology-devops-gw-infra.git
synced 2025-12-25 15:22:36 +03:00
[stage-5] fix tag.jenkinsfile
This commit is contained in:
@@ -48,24 +48,24 @@ podTemplate(
|
|||||||
|
|
||||||
dir('app') {
|
dir('app') {
|
||||||
echo "checkout tag ${tagName}"
|
echo "checkout tag ${tagName}"
|
||||||
// checkout scm: [
|
checkout scm: [
|
||||||
// $class: 'GitSCM',
|
$class: 'GitSCM',
|
||||||
// userRemoteConfigs: [[
|
userRemoteConfigs: [[
|
||||||
// url: 'git@github.com:Dannecron/parcel-example-neko.git',
|
url: 'git@github.com:Dannecron/parcel-example-neko.git',
|
||||||
// credentialsId: 'github-key'
|
credentialsId: 'github-key'
|
||||||
// ]],
|
]],
|
||||||
// branches: [[name: "refs/tags/${tagName}"]]],
|
branches: [[name: "refs/tags/${tagName}"]]],
|
||||||
// poll: false
|
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') {
|
stage('deploy') {
|
||||||
|
|||||||
Reference in New Issue
Block a user