Skip to content
Snippets Groups Projects
Commit 3769590a authored by Gabriele Barni's avatar Gabriele Barni
Browse files

Update .gitlab-ci.yml file, using Project Access Token for login

parent ffa04636
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ image_build:
stage: build
image: docker:stable
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://$CI_REGISTRY
- docker login -u <username> -p <access_token> http://$CI_REGISTRY
script: |
CI_COMMIT_SHA_7=$(echo $CI_COMMIT_SHA | cut -c1-7)
docker build --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 .
......
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