From 4fbc5ca7810ccc7a6b4f934d0e6a8dd63e7eec72 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 21 Dec 2022 11:12:47 -0600 Subject: [PATCH] ci: Publish to Gitea registry.pyrocufflink.blue is going away. All container images hosted there are being moved to Gitea. --- ci/Jenkinsfile | 7 ++++++- ci/publish-container.sh | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index f749f80..dc0aeec 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -53,7 +53,12 @@ pipeline { stage('Publish Container') { steps { container('buildah') { - sh '. ci/publish-container.sh' + withCredentials([usernameColonPassword( + credentialsId: 'jenkins-packages', + variable: 'BUILDAH_CREDS', + )]) { + sh '. ci/publish-container.sh' + } } } } diff --git a/ci/publish-container.sh b/ci/publish-container.sh index 03bfbcf..c53e2df 100644 --- a/ci/publish-container.sh +++ b/ci/publish-container.sh @@ -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}