CI: WIP: attempt to clean up the registry before leaving
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Mon, 18 Jun 2018 13:13:17 +0000 (15:13 +0200)
committerBenjamin Tissoires <benjamin.tissoires@gmail.com>
Tue, 19 Jun 2018 08:41:48 +0000 (10:41 +0200)
commite70e67847c0c52a0a6e4e6d2452a032911356451
treebef6ffacf20f384a693b4042ff7a85a6c1f2f70c
parentb2b7fab7b18128e7fa8cc71f0ab42c49d988151a
CI: WIP: attempt to clean up the registry before leaving

According to multiple sources, referenced in
https://engineering.facile.it/blog/eng/continuous-deployment-from-gitlab-ci-to-k8s-using-docker-in-docker/

The garbage collector of the registry won't clean up docker images that
still have blob references. We should clean up the manifests instead
of simply overwriting the tag.

Note: this requires to set up a personal token with api access from the
maintainers in the form of (for instance): "PERSONAL_TOKEN_bentiss"

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
.gitlab-ci.yml