Commit 286376f5 authored by jonas's avatar jonas

Use CI_COMMIT_SHORT_SHA for tags

parent 898c7c3f
......@@ -15,10 +15,10 @@ deploy:
- docker pull $CONTAINER_IMAGE:latest || true
- docker build
--cache-from $CI_REGISTRY_IMAGE:latest
--tag $CONTAINER_IMAGE:$CI_COMMIT_SHA
--tag $CONTAINER_IMAGE:$CI_COMMIT_SHORT_SHA
--tag $CONTAINER_IMAGE:latest
.
- docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA
- docker push $CONTAINER_IMAGE:$CI_COMMIT_SHORT_SHA
- docker push $CONTAINER_IMAGE:latest
only:
- master
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