diff --git a/Jenkinsfile b/Jenkinsfile index 3f9e646..c509746 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,6 +4,7 @@ pipeline { environment { HOME = "${env.WORKSPACE}" + DOCKER_REGISTRY = 'https://registry.digitalocean.com' DOCKER_IMAGE_NAME = 'registry.digitalocean.com/ailuridae-registry/ailuridae.io/everybodymov' DOCKER_IMAGE = '' } @@ -49,7 +50,7 @@ pipeline { } steps { script { - docker.withRegistry("", "digital-ocean-ailuridae-registry") { + docker.withRegistry(env.DOCKER_REGISTRY, "digital-ocean-ailuridae-registry") { DOCKER_IMAGE.push("${BUILD_NUMBER}") DOCKER_IMAGE.push('latest') }