Commit 8f76c8a1 authored by Anthony FREYERMUTH's avatar Anthony FREYERMUTH
Browse files

[#2] Trying a new way to log in Docker

parent 76d01fce
Pipeline #56198 failed with stages
in 3 minutes and 18 seconds
......@@ -18,8 +18,10 @@ docker-build:
- build
before_script:
- docker logout
- echo "$CI_JOB_TOKEN $CI_REGISTRY"
- echo "$CI_JOB_TOKEN" | docker login $CI_REGISTRY -u gitlab-ci-token --password-stdin
- echo $CI_JOB_TOKEN
- echo $CI_REGISTRY
#- echo "$CI_JOB_TOKEN" | docker login $CI_REGISTRY -u gitlab-ci-token --password-stdin
- docker login -u $CI_JOB_USER -p $CI_JOB_TOKEN $CI_REGISTRY
script:
- docker build --rm ./ -t ${IMAGE_FQDN}
- docker push ${IMAGE_FQDN}
......
Markdown is supported
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