Skip to content
Snippets Groups Projects
Commit 352d41c2 authored by Reto Gerber's avatar Reto Gerber
Browse files

Update .gitlab-ci.yml file

parent 7f8cb702
No related branches found
No related tags found
No related merge requests found
......@@ -13,12 +13,14 @@ image_build:
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://$CI_REGISTRY
script: |
docker build --no-cache --tag $CI_REGISTRY_IMAGE:latest .
docker push $CI_REGISTRY_IMAGE:latest
CI_COMMIT_SHA_7=$(echo $CI_COMMIT_SHA | cut -c1-7)
docker build --no-cache --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 .
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7
#docker build --no-cache --tag $CI_REGISTRY_IMAGE:latest .
#docker push $CI_REGISTRY_IMAGE:latest
#CI_COMMIT_SHA_7=$(echo $CI_COMMIT_SHA | cut -c1-7)
#docker build --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 .
#docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7
retrieve_data:
stage: deploy
......
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