Commit f54f48b7 authored by Andres Anaya Amariels's avatar Andres Anaya Amariels 🚀
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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 .