Skip to content
Snippets Groups Projects
Verified Commit c4d24375 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

ci(gitlab-ci): Add latest-per-branch tag for images

This patch pushes the branch reference to the container image tags and
also a semi "latest" tag for each branch, which should help
testing/trying new images.
parent bcc393b0
No related branches found
No related tags found
No related merge requests found
Pipeline #14272 passed
...@@ -46,10 +46,11 @@ container-build-dev: ...@@ -46,10 +46,11 @@ container-build-dev:
--label "org.opencontainers.image.created=$(date --rfc-3339 ns)" \ --label "org.opencontainers.image.created=$(date --rfc-3339 ns)" \
--label "org.opencontainers.image.title=${IMAGE}" \ --label "org.opencontainers.image.title=${IMAGE}" \
--label "quay.expires-after=12w" \ --label "quay.expires-after=12w" \
-t "quay.io/shivering-isles/${IMAGE}:${CI_COMMIT_SHORT_SHA}" \ -t "quay.io/shivering-isles/${IMAGE}:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}" \
--format docker \ --format docker \
. .
- podman push "quay.io/shivering-isles/${IMAGE}:${CI_COMMIT_SHORT_SHA}" - podman push "quay.io/shivering-isles/${IMAGE}:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}"
- podman push "quay.io/shivering-isles/${IMAGE}:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}" "quay.io/shivering-isles/${IMAGE}:${CI_COMMIT_REF_SLUG}"
rules: rules:
- if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"' - if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
changes: changes:
......
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