From e1266b836bb48112d52f727c4b050e9759cbbd04 Mon Sep 17 00:00:00 2001 From: apentori <124469871+apentori@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:15:18 +0100 Subject: [PATCH] feat: setting image deployment to Harbor Registry (#927) Signed-off-by: Alexis Pentori --- ci/Jenkinsfile.docker | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ci/Jenkinsfile.docker b/ci/Jenkinsfile.docker index 1730e011..f428bef7 100644 --- a/ci/Jenkinsfile.docker +++ b/ci/Jenkinsfile.docker @@ -12,7 +12,7 @@ pipeline { string( name: 'IMAGE_NAME', description: 'Docker image name.', - defaultValue: params.IMAGE_NAME ?: 'wakuorg/go-waku', + defaultValue: params.IMAGE_NAME ?: 'waku-org/go-waku', ) string( name: 'IMAGE_TAG', @@ -21,9 +21,15 @@ pipeline { ) string( name: 'DOCKER_CRED', - description: 'Name of Docker Hub credential.', - defaultValue: params.DOCKER_CRED ?: 'dockerhub-vacorgbot-api-token', + description: 'Name of Docker Registry credential.', + defaultValue: params.DOCKER_CRED ?: 'harbor-wakuorg-robot', ) + string( + name: 'DOCKER_REGISTRY_URL', + description: 'URL of the Docker Registry', + defaultValue: params.DOCKER_REGISTRY_URL ?: 'https://harbor.status.im' + ) + } options { @@ -48,7 +54,7 @@ pipeline { when { expression { params.IMAGE_TAG != '' } } steps { script { withDockerRegistry([ - credentialsId: params.DOCKER_CRED, url: '' + credentialsId: params.DOCKER_CRED, url: params.DOCKER_REGISTRY_URL ]) { image.push() /* If Git ref is a tag push it as Docker tag too. */