Skip to content
Snippets Groups Projects
Commit 0e1b80b5 authored by Michael.Menk's avatar Michael.Menk
Browse files

Update .gitlab-ci.yml file

parent c492e10a
No related branches found
No related tags found
No related merge requests found
Pipeline #212034 failed
......@@ -10,8 +10,15 @@ build:
stage: build
script:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest
- if [ $CI_COMMIT_TAG != '' ]; then
docker build --cache-from $CI_REGISTRY_IMAGE:latest
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
--tag $CI_REGISTRY_IMAGE:latest .
else
docker build --cache-from $CI_REGISTRY_IMAGE:latest
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA --tag $CI_REGISTRY_IMAGE:latest .
fi
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
- docker push $CI_REGISTRY_IMAGE:latest
- if [ $CI_COMMIT_TAG != '' ]; then docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG ;fi
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