ci: Publish container image to Gitea
All checks were successful
dustin/hudctrl/pipeline/head This commit looks good
All checks were successful
dustin/hudctrl/pipeline/head This commit looks good
The Docker Distribution image resitry is no more.
This commit is contained in:
7
ci/Jenkinsfile
vendored
7
ci/Jenkinsfile
vendored
@@ -63,7 +63,12 @@ pipeline {
|
||||
stage('Publish Container') {
|
||||
steps {
|
||||
container('podman') {
|
||||
sh '. ci/publish-container.sh'
|
||||
withCredentials([usernameColonPassword(
|
||||
credentialsId: 'jenkins-packages',
|
||||
variable: 'PODMAN_AUTH',
|
||||
)]) {
|
||||
sh '. ci/publish-container.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
|
||||
push() {
|
||||
tag=$(tag_name "$1")
|
||||
podman push hudctrl:$(tag_name ${BUILD_TAG}) registry.pyrocufflink.blue/hudctrl:${tag}
|
||||
podman push \
|
||||
--creds="${PODMAN_AUTH}" \
|
||||
hudctrl:$(tag_name ${BUILD_TAG}) \
|
||||
git.pyrocufflink.blue/containerimages/hudctrl:${tag}
|
||||
}
|
||||
|
||||
push ${BUILD_TAG}
|
||||
|
||||
Reference in New Issue
Block a user