From 93dd5ae50dcf6b1978fc979cb46c6d73848b0f4b Mon Sep 17 00:00:00 2001 From: Alexis Pentori Date: Thu, 16 Nov 2023 14:57:34 +0100 Subject: [PATCH] feat: setting image deployment to harbor registry Adding variable to push image to specific Registry Changing image owner name to `waku-org` to match Github Repository naming Signed-off-by: Alexis Pentori --- ci/Jenkinsfile.release | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ci/Jenkinsfile.release b/ci/Jenkinsfile.release index add5544379..c26c64126c 100644 --- a/ci/Jenkinsfile.release +++ b/ci/Jenkinsfile.release @@ -24,12 +24,17 @@ pipeline { string( name: 'IMAGE_NAME', description: 'Name of Docker image to push.', - defaultValue: params.IMAGE_NAME ?: 'wakuorg/nwaku', + defaultValue: params.IMAGE_NAME ?: 'waku-org/nwaku', ) 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' ) string( name: 'NIMFLAGS', @@ -80,7 +85,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. */