1
0
Fork 0

ci: Publish container image to Gitea
dustin/hudctrl/pipeline/head This commit looks good Details

The Docker Distribution image resitry is no more.
master
Dustin 2022-12-18 13:09:53 -06:00
parent a14921b79e
commit d278eedcbd
2 changed files with 10 additions and 2 deletions

7
ci/Jenkinsfile vendored
View File

@ -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'
}
}
}
}

View File

@ -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}