Skip to content

Commit

Permalink
Fix gitlab registry login (#288)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniele Pompa <daniele.pompa@20tab.com>
  • Loading branch information
daniele-20tab and Daniele Pompa committed Jul 25, 2023
1 parent 2611932 commit 3a245f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion {{cookiecutter.project_dirname}}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ can-i-deploy_production:
- docker:20-dind
before_script:
- export DOCKER_CONFIG=${PWD}/.dockerconfig
- docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
- docker login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
script:
- docker build -t ${CI_REGISTRY}/${CI_PROJECT_PATH}:${VERSION_REF} --target remote --pull .
- docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}:${VERSION_REF}
Expand Down

0 comments on commit 3a245f3

Please sign in to comment.