Skip to content

Commit

Permalink
Do non-anonymous DockerHub pulls on CI (anonymous pulls have stricter…
Browse files Browse the repository at this point in the history
… pull limits)
  • Loading branch information
JonJagger committed Oct 8, 2020
1 parent 2b013ed commit f3319b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
command: |
export AVATARS_COVERAGE=off
export AVATARS_DEMO=off
# DOCKER_USER, DOCKER_PASS are in the context
echo "${DOCKER_PASS}" | docker login --username "${DOCKER_USER}" --password-stdin
./build_test_publish.sh
docker logout
deploy-to-beta:
docker:
Expand Down
3 changes: 0 additions & 3 deletions sh/on_ci_publish_tagged_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ on_ci_publish_tagged_images()
local -r image="$(image_name)"
local -r sha="$(image_sha)"
local -r tag="${sha:0:7}"
# DOCKER_USER, DOCKER_PASS are in ci context
echo "${DOCKER_PASS}" | docker login --username "${DOCKER_USER}" --password-stdin
docker push "${image}:latest"
docker push "${image}:${tag}"
docker logout
}

# - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down

0 comments on commit f3319b3

Please sign in to comment.