Skip to content

Commit 02c9bef

Browse files
authored
ci: docker login step for pulling then pushing (#29960)
1 parent 53c7c51 commit 02c9bef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.ci/packaging.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,6 @@ def tagAndPush(Map args = [:]) {
307307
tagName = "pr-${env.CHANGE_ID}"
308308
}
309309

310-
dockerLogin(secret: "${DOCKERELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")
311-
312310
// supported tags
313311
def tags = [tagName, "${env.GIT_BASE_COMMIT}"]
314312
if (!isPR() && aliasVersion != "") {
@@ -386,6 +384,7 @@ def release(){
386384
withEnv([
387385
"DEV=true"
388386
]) {
387+
dockerLogin(secret: "${DOCKERELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")
389388
dir("${env.BEATS_FOLDER}") {
390389
sh(label: "Release ${env.BEATS_FOLDER} ${env.PLATFORMS}", script: 'mage package')
391390
}

0 commit comments

Comments
 (0)