From 37b7075e30fe2abb421d159b999c43e1760528b0 Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Wed, 20 Dec 2023 14:11:31 +0100 Subject: [PATCH] [#13] Fixed URL and credentials --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a23028a..8f5302a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { environment { GITEA_CREDS = credentials('AMARILLO-JENKINS-GITEA-USER') TWINE_REPO_URL = "https://git.gerhardt.io/api/packages/amarillo/pypi" - REGISTRY_URL = 'git.gerhardt.io' + REGISTRY_URL = 'https://git.gerhardt.io' OWNER = 'amarillo' IMAGE_NAME = "amarillo" TAG = 'latest' @@ -53,7 +53,7 @@ pipeline { steps { echo 'Pushing image to registry' script { - docker.withRegistry(REGISTRY_URL, GITEA_CREDS){ + docker.withRegistry(REGISTRY_URL, 'AMARILLO-JENKINS-GITEA-USER'){ docker.image("${OWNER}/${IMAGE_NAME}:${TAG}").push() } }