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

Update .gitlab-ci.yml file, using registry username and password

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