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
472bdd69fe
commit
42bab5448a
1 changed files with 6 additions and 1 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -1,10 +1,15 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
|
environment {
|
||||||
|
GIT_REF = """${sh(
|
||||||
|
script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD'
|
||||||
|
returnStdout: true,
|
||||||
|
)}"""
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
agent { label 'linux-aarch64' }
|
agent { label 'linux-aarch64' }
|
||||||
steps {
|
steps {
|
||||||
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} ."
|
sh "podman build -t docker.io/thallian/atuin:${env.GIT_REF} ."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue