Skip to content
Snippets Groups Projects
Commit f39ada25 authored by Rok Roškar's avatar Rok Roškar
Browse files

chore: fix image tag

parent 15dd3555
No related branches found
No related tags found
1 merge request!202chore: fix image tag
Pipeline #37470 passed with stages
in 21 minutes and 4 seconds
......@@ -51,12 +51,11 @@ update-build:
<<: *docker_before_script
script: |
CI_COMMIT_SHA_7=$(echo $CI_COMMIT_SHA | cut -c1-7)
docker build --build-arg BUILDKIT_INLINE_CACHE=1 \
--tag $CI_REGISTRY_IMAGE:${CI_COMMIT_SHA_7}-update \
--tag $CI_REGISTRY_IMAGE:${CI_COMMIT_SHORT_SHA}-update \
--cache-from $CI_REGISTRY_IMAGE .
docker push $CI_REGISTRY_IMAGE:${CI_COMMIT_SHA_7}-update
docker tag $CI_REGISTRY_IMAGE:${CI_COMMIT_SHA_7}-update ${CI_REGISTRY_IMAGE}:latest
docker push $CI_REGISTRY_IMAGE:${CI_COMMIT_SHORT_SHA}-update
docker tag $CI_REGISTRY_IMAGE:${CI_COMMIT_SHORT_SHA}-update ${CI_REGISTRY_IMAGE}:latest
docker push $CI_REGISTRY_IMAGE:latest
datasets:
......
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