Skip to content

Commit

Permalink
ci: docker login step for pulling then pushing (#29960) (#29963)
Browse files Browse the repository at this point in the history
(cherry picked from commit 02c9bef)

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
  • Loading branch information
mergify[bot] and v1v committed Jan 24, 2022
1 parent cd16c9f commit c6bec41
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 @@ -380,6 +378,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 c6bec41

Please sign in to comment.