Skip to content

Commit

Permalink
Add printout of registry env var
Browse files Browse the repository at this point in the history
  • Loading branch information
plajjan committed Sep 15, 2019
1 parent 5964786 commit 837afb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build:
# the GitLab built-in Docker registry so we check if it is enabled.
# CI_REGISTRY is only set when the GitLab Docker registry is enabled
- if [ -z "${DOCKER_REGISTRY}" ]; then if [ -n "${CI_REGISTRY}" ]; then export DOCKER_USER=gitlab-ci-token; export DOCKER_PASSWORD=${CI_BUILD_TOKEN}; export DOCKER_REGISTRY=${CI_REGISTRY_IMAGE}; fi; fi
- 'echo "DOCKER_REGISTRY: ${DOCKER_REGISTRY}"'
# if DOCKER_REGISTRY set, either explicitly by user or implicitly by GitLab
# (see above) we login to repo, build images and push them
- if [ -n "${DOCKER_REGISTRY}" ]; then docker login -u ${DOCKER_USER} -p=${DOCKER_PASSWORD} ${DOCKER_REGISTRY}; fi
Expand Down

0 comments on commit 837afb4

Please sign in to comment.