Skip to content

Commit 7376d54

Browse files
authored
ci: run docker login after (#127)
1 parent e50991a commit 7376d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ def goReleaser(Closure body) {
122122
deleteDir()
123123
unstash 'source'
124124
dir("${BASE_DIR}"){
125-
dockerLogin(secret: "${DOCKER_ELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")
126125
withGoEnv() {
127126
sh(label: 'install goreleaser', script: 'go install github.com/goreleaser/[email protected]')
128127
withCredentials([string(credentialsId: "${env.GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
128+
dockerLogin(secret: "${DOCKER_ELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")
129129
body()
130130
}
131131
}

0 commit comments

Comments
 (0)