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

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

parent c3fe0bea
No related branches found
No related tags found
No related merge requests found
...@@ -153,6 +153,7 @@ include: ...@@ -153,6 +153,7 @@ include:
- docker build --cache-from "$GCR_IMAGE" -t "$GCR_IMAGE":latest -t "$GCR_IMAGE":"${CI_COMMIT_SHA}_${CI_PIPELINE_IID}" -t "$GCR_IMAGE":"$CI_COMMIT_REF_SLUG" . - docker build --cache-from "$GCR_IMAGE" -t "$GCR_IMAGE":latest -t "$GCR_IMAGE":"${CI_COMMIT_SHA}_${CI_PIPELINE_IID}" -t "$GCR_IMAGE":"$CI_COMMIT_REF_SLUG" .
- docker push "$GCR_IMAGE":"${CI_COMMIT_SHA}_${CI_PIPELINE_IID}" # this is the tag that is used for deployment - docker push "$GCR_IMAGE":"${CI_COMMIT_SHA}_${CI_PIPELINE_IID}" # 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
resource_group: $CI_COMMIT_REF_NAME # only 1 job per branch resource_group: $CI_COMMIT_REF_NAME # only 1 job per branch
development_build_mesh: development_build_mesh:
......
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