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

refactor: update docker login command in ci_staging.gitlab-ci.yml to use...

refactor: update docker login command in ci_staging.gitlab-ci.yml to use password-stdin for security
parent 0dfabce2
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,7 @@ staging_grype_cvs:
cd services/$IMAGE_NAME/
# Login to Docker 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
# Build Docker image
docker build -t $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/$IMAGE_LOWER:$CI_COMMIT_REF_SLUG .
......
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