Commit 9a4ecf28 authored by Aayush Gupta's avatar Aayush Gupta
Browse files

Browser: Use stdin for password in CI



Address the following warning:

WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
parent dd45eb20
......@@ -19,7 +19,7 @@ build-docker:
services:
- docker:19-dind
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.e.foundation:5000
- echo "$CI_JOB_TOKEN" | docker login registry.gitlab.e.foundation:5000 -u gitlab-ci-token --password-stdin
- docker pull $CONTAINER_IMAGE:latest || true
- docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:latest ${CI_PROJECT_DIR}
- docker push $CONTAINER_IMAGE:latest
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment