From d8b6e1daf998761102843e093215a409dbeb524c Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 8 Aug 2023 10:43:40 +0000 Subject: [PATCH] Squashed '.ci/' changes from 0821e91..f00e541 f00e541 Add cleanup step to remove untagged images by default git-subtree-dir: .ci git-subtree-split: f00e54179893bcaa915ddbf5c65c28adef70433a --- vars/buildPodman.groovy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vars/buildPodman.groovy b/vars/buildPodman.groovy index e5ecff9..6e2aab2 100644 --- a/vars/buildPodman.groovy +++ b/vars/buildPodman.groovy @@ -68,6 +68,13 @@ def call(Map config=[:]) { } } + // Basic registry retention removing untagged images + stage('cleanup') { + when { not { changeRequest() } } + steps { + sh 'make rm-remote-untagged' + } + } } } }