diff --git a/Jenkinsfile b/Jenkinsfile index 9934098..f6a5076 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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} ." } } }