Skip to content

Commit

Permalink
ci: docker login step for pulling then pushing (elastic#29960)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored and yashtewari committed Jan 30, 2022
1 parent 3be983b commit 044871c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .ci/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ def tagAndPush(Map args = [:]) {
tagName = "pr-${env.CHANGE_ID}"
}

dockerLogin(secret: "${DOCKERELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")

// supported tags
def tags = [tagName, "${env.GIT_BASE_COMMIT}"]
if (!isPR() && aliasVersion != "") {
Expand Down Expand Up @@ -386,6 +384,7 @@ def release(){
withEnv([
"DEV=true"
]) {
dockerLogin(secret: "${DOCKERELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")
dir("${env.BEATS_FOLDER}") {
sh(label: "Release ${env.BEATS_FOLDER} ${env.PLATFORMS}", script: 'mage package')
}
Expand Down

0 comments on commit 044871c

Please sign in to comment.