Skip to content
Snippets Groups Projects
Commit 8a6e6809 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

gitlab-ci: Apply the "latest" tag only on success

Always tag built images as `test-$COMMIT` so that we keep a bunch of
those around in case a rollback is needed, using a GitLab Container
Registry cleanup policy to keep storage under control.

https://docs.gitlab.com/ee/user/packages/container_registry/#cleanup-policy



We can then apply the `latest` tag to officially publish the built
images only after the tests have passed successfully.

This allows projects to set up a cleanup policy tailored to their needs
and to easily retain images that are needed for long term support, for
instance the ones used to on release builds.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 33498818
No related branches found
No related tags found
2 merge requests!123gitlab-ci: Apply the "latest" tag only on success,!93WIP: documentation-builder: Rebase on Apertis instead of Debian Buster
Checking pipeline status
Loading
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