Commit 2535d812 authored by Lambert Theisen's avatar Lambert Theisen 🔥

Add branch to use as docker tag

- to hopefully get proper cachicng done
parent 22711f18
Pipeline #307383 canceled with stages
in 45 seconds
......@@ -21,10 +21,12 @@ prepare:docker:
script:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA || true
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME || true
- docker build
--cache-from $CI_REGISTRY_IMAGE:latest
--cache-from $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
--tag $CI_REGISTRY_IMAGE:latest .
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA # no need
# - docker push $CI_REGISTRY_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