Skip to content
Snippets Groups Projects
Commit 1e63af9e authored by Andres Anaya Amariels's avatar Andres Anaya Amariels :rocket:
Browse files

refactor: update docker login command to use CI_JOB_TOKEN for improved security

parent 4cebd675
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,8 @@ dev_build_and_push:
- export TMP_PWD=$PWD
- echo "TMP_PWD=$TMP_PWD"
- echo "### docker login###"
- docker login --username $CI_REGISTRY_USER --password $CAPIF_DOCKER_REGISTRY $CI_REGISTRY
# - docker login --username $CI_REGISTRY_USER --password $CAPIF_DOCKER_REGISTRY $CI_REGISTRY
- echo "$CI_JOB_TOKEN" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin
- echo "----------------------------------------------------"
- echo "### build and push nginx image###"
- cd $TMP_PWD/services/nginx/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment