try git ref
Some checks are pending
Build Multiarch Container Image / call-reusable-workflow (push) Waiting to run
Some checks are pending
Build Multiarch Container Image / call-reusable-workflow (push) Waiting to run
This commit is contained in:
parent
9fdded3f8f
commit
472bdd69fe
1 changed files with 2 additions and 1 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -4,7 +4,8 @@ pipeline {
|
|||
stage('Build') {
|
||||
agent { label 'linux-aarch64' }
|
||||
steps {
|
||||
sh "podman build -t docker.io/thallian/atuin:${env.TAG_NAME ? env.TAG_NAME : env.BRANCH_NAME} ."
|
||||
env.GIT_REF = sh(script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD', returnStdout: true).trim()
|
||||
sh "podman build -t docker.io/thallian/atuin:${env.GIT_REF} ."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue