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
7dd1236f71
commit
9e35d642b8
1 changed files with 11 additions and 0 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -13,5 +13,16 @@ pipeline {
|
||||||
sh "podman build -t docker.io/thallian/atuin:${env.GIT_REF} ."
|
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}
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue