try git ref
Some checks are pending
Build Multiarch Container Image / call-reusable-workflow (push) Waiting to run

This commit is contained in:
Sebastian Hugentobler 2025-06-03 19:32:22 +02:00
parent 7dd1236f71
commit 9e35d642b8
Signed by: shu
SSH key fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M

11
Jenkinsfile vendored
View file

@ -13,5 +13,16 @@ pipeline {
sh "podman build -t docker.io/thallian/atuin:${env.GIT_REF} ."
}
}
stage('Push') {
when { tag "*" }
steps {
withCredentials([usernamePassword(credentialsId: 'dockerhub', usernameVariable: 'REG_USERNAME', passwordVariable: 'REG_PASSWORD')]) {
sh '''
podman login docker.io -u $REG_USERNAME -p $REG_PASSWORD
podman push docker.io/thallian/atuin:${GIT_REF}
'''
}
}
}
}
}