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

5
ci/Jenkinsfile vendored
View File

@ -63,9 +63,14 @@ pipeline {
stage('Publish Container') { stage('Publish Container') {
steps { steps {
container('podman') { container('podman') {
withCredentials([usernameColonPassword(
credentialsId: 'jenkins-packages',
variable: 'PODMAN_AUTH',
)]) {
sh '. ci/publish-container.sh' sh '. ci/publish-container.sh'
} }
} }
} }
} }
}
} }

View File

@ -4,7 +4,10 @@
push() { push() {
tag=$(tag_name "$1") 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} push ${BUILD_TAG}