ci: Publish container image to Gitea
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:
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') {
steps {
container('podman') {
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}