Skip to content

Commit

Permalink
fix: login into the docker registry (#17620)
Browse files Browse the repository at this point in the history
* fix: login into the docker registry

* test: make a pull after login to test

* docs: add note to the workaround
  • Loading branch information
kuisathaverat authored Apr 14, 2020
1 parent e1c4eb8 commit c072a24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ pipeline {
BASE_DIR = 'src/github.com/elastic/beats'
GOX_FLAGS = "-arch amd64"
DOCKER_COMPOSE_VERSION = "1.21.0"
DOCKERELASTIC_SECRET = 'secret/observability-team/ci/docker-registry/prod'
DOCKER_REGISTRY = 'docker.elastic.co'
}
options {
timeout(time: 2, unit: 'HOURS')
Expand Down Expand Up @@ -657,6 +659,9 @@ def withBeatsEnv(boolean archive, Closure body) {
]) {
deleteDir()
unstash 'source'
dockerLogin(secret: "${DOCKERELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")
// FIXME workaround untill we fix the packer cache
sh 'docker pull docker.elastic.co/observability-ci/database-enterprise:12.2.0.1'
dir("${env.BASE_DIR}") {
sh(label: "Install Go ${GO_VERSION}", script: ".ci/scripts/install-go.sh")
sh(label: "Install docker-compose ${DOCKER_COMPOSE_VERSION}", script: ".ci/scripts/install-docker-compose.sh")
Expand Down

0 comments on commit c072a24

Please sign in to comment.