mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-29 23:15:40 +00:00
feat: setting image deployment to Harbor Registry (#927)
Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
parent
cf8c36f85d
commit
e1266b836b
@ -12,7 +12,7 @@ pipeline {
|
|||||||
string(
|
string(
|
||||||
name: 'IMAGE_NAME',
|
name: 'IMAGE_NAME',
|
||||||
description: 'Docker image name.',
|
description: 'Docker image name.',
|
||||||
defaultValue: params.IMAGE_NAME ?: 'wakuorg/go-waku',
|
defaultValue: params.IMAGE_NAME ?: 'waku-org/go-waku',
|
||||||
)
|
)
|
||||||
string(
|
string(
|
||||||
name: 'IMAGE_TAG',
|
name: 'IMAGE_TAG',
|
||||||
@ -21,9 +21,15 @@ pipeline {
|
|||||||
)
|
)
|
||||||
string(
|
string(
|
||||||
name: 'DOCKER_CRED',
|
name: 'DOCKER_CRED',
|
||||||
description: 'Name of Docker Hub credential.',
|
description: 'Name of Docker Registry credential.',
|
||||||
defaultValue: params.DOCKER_CRED ?: 'dockerhub-vacorgbot-api-token',
|
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 {
|
options {
|
||||||
@ -48,7 +54,7 @@ pipeline {
|
|||||||
when { expression { params.IMAGE_TAG != '' } }
|
when { expression { params.IMAGE_TAG != '' } }
|
||||||
steps { script {
|
steps { script {
|
||||||
withDockerRegistry([
|
withDockerRegistry([
|
||||||
credentialsId: params.DOCKER_CRED, url: ''
|
credentialsId: params.DOCKER_CRED, url: params.DOCKER_REGISTRY_URL
|
||||||
]) {
|
]) {
|
||||||
image.push()
|
image.push()
|
||||||
/* If Git ref is a tag push it as Docker tag too. */
|
/* If Git ref is a tag push it as Docker tag too. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user