Commit 6451f8d7 authored by jonas's avatar jonas

Do not use commit sha for tags

parent 90ad0e2c
......@@ -13,8 +13,15 @@
- docker pull $CONTAINER_IMAGE:latest || true
- docker build
--cache-from $CI_REGISTRY_IMAGE:latest
--tag $CONTAINER_IMAGE:$CI_COMMIT_SHORT_SHA
--tag $CONTAINER_IMAGE:latest
$CONTAINER_DIR
- docker push $CONTAINER_IMAGE:$CI_COMMIT_SHORT_SHA
- docker push $CONTAINER_IMAGE:latest
# script:
# - docker pull $CONTAINER_IMAGE:latest || true
# - docker build
# --cache-from $CI_REGISTRY_IMAGE:latest
# --tag $CONTAINER_IMAGE:$CI_COMMIT_SHORT_SHA
# --tag $CONTAINER_IMAGE:latest
# $CONTAINER_DIR
# - docker push $CONTAINER_IMAGE:$CI_COMMIT_SHORT_SHA
# - docker push $CONTAINER_IMAGE:latest
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