Skip to content
Snippets Groups Projects
Commit b247df9c authored by Ole Langbehn's avatar Ole Langbehn
Browse files

bugfix(ci): push latest tag for caching future builds

parent 12fea207
No related branches found
No related tags found
No related merge requests found
...@@ -84,6 +84,7 @@ build_docker: ...@@ -84,6 +84,7 @@ build_docker:
- docker build --cache-from "$GCR_IMAGE" -t "$GCR_IMAGE":latest -t "$GCR_IMAGE":"$CI_COMMIT_SHA" -t "$GCR_IMAGE":"$CI_COMMIT_REF_SLUG" . - docker build --cache-from "$GCR_IMAGE" -t "$GCR_IMAGE":latest -t "$GCR_IMAGE":"$CI_COMMIT_SHA" -t "$GCR_IMAGE":"$CI_COMMIT_REF_SLUG" .
- docker push "$GCR_IMAGE":"$CI_COMMIT_SHA" # this is the tag that is used for deployment - docker push "$GCR_IMAGE":"$CI_COMMIT_SHA" # this is the tag that is used for deployment
- docker push "$GCR_IMAGE":"$CI_COMMIT_REF_SLUG" # just for easyly knowing which is the last image for a branch - docker push "$GCR_IMAGE":"$CI_COMMIT_REF_SLUG" # just for easyly knowing which is the last image for a branch
- docker push "$GCR_IMAGE":latest # for caching the build
## review environments ## review environments
......
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