1
0
Fork 0

ci: Publish to Gitea
dustin/pythonctnr/pipeline/head Something is wrong with the build of this commit Details

registry.pyrocufflink.blue is going away.  All container images hosted
there are being moved to Gitea.
master
Dustin 2022-12-21 11:12:47 -06:00
parent c748e19236
commit 4fbc5ca781
2 changed files with 9 additions and 2 deletions

5
ci/Jenkinsfile vendored
View File

@ -53,10 +53,15 @@ pipeline {
stage('Publish Container') {
steps {
container('buildah') {
withCredentials([usernameColonPassword(
credentialsId: 'jenkins-packages',
variable: 'BUILDAH_CREDS',
)]) {
sh '. ci/publish-container.sh'
}
}
}
}
}
}

View File

@ -4,7 +4,9 @@
push() {
tag=$(tag_name "$1")
buildah push pythonctnr:$(tag_name ${BUILD_TAG}) registry.pyrocufflink.blue/pythonctnr:${tag}
buildah push --creds "${BUILDAH_CREDS}" \
pythonctnr:$(tag_name ${BUILD_TAG}) \
git.pyrocufflink.net/containerimages/pythonctnr:${tag}
}
push ${BUILD_TAG}