Skip to content

Commit

Permalink
feat: setting image deployment to harbor registry
Browse files Browse the repository at this point in the history
    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 <alexis@status.im>
  • Loading branch information
apentori committed Nov 29, 2023
1 parent bebaa59 commit 93dd5ae
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ci/Jenkinsfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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. */
Expand Down

0 comments on commit 93dd5ae

Please sign in to comment.