From 9524a1bf92ee5ac500964ce5c8b2b6fe39672e2c Mon Sep 17 00:00:00 2001 From: Gitouche Date: Sat, 18 May 2024 00:08:39 +0200 Subject: [PATCH] vaultwarden&jitsi : ci cleanup images --- podman-jitsi/ci_build-images.sh | 2 +- podman-vaultwarden/ci_build-images.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/podman-jitsi/ci_build-images.sh b/podman-jitsi/ci_build-images.sh index b2ce16c..30fe6e0 100755 --- a/podman-jitsi/ci_build-images.sh +++ b/podman-jitsi/ci_build-images.sh @@ -46,9 +46,9 @@ if git clone -b ${version} --depth=1 https://github.com/jitsi/docker-jitsi-meet/ podman image rm localhost/jitsi/base-java:${version} localhost/jitsi/base-java:latest podman image rm localhost/jitsi/base:${version} localhost/jitsi/base:latest fi + podman image rm -f $(podman image list -a -q -- docker.io/library/debian) fi rm -rf ${buildfolder} - for image in ${upstream_images}; do oci_push_to_registry "${image}":${version} done diff --git a/podman-vaultwarden/ci_build-images.sh b/podman-vaultwarden/ci_build-images.sh index 823b1d8..39841c1 100755 --- a/podman-vaultwarden/ci_build-images.sh +++ b/podman-vaultwarden/ci_build-images.sh @@ -20,9 +20,10 @@ if ! podman image exists ${service_image}:${service_version}; then TMPDIR=${HOME} DB='postgresql,enable_mimalloc' CONTAINER_REGISTRIES='git.garbaye.fr/garbaye/vaultwarden' BASE_TAGS=${service_version%%-*} ${buildfolder}/docker/podman-bake.sh || retval=false podman image prune -a -f --filter dangling=true podman image prune -a -f --filter intermediate=true - podman image rm -f $(podman image list -a -q -- vaultwarden/web-vault) - podman image rm -f $(podman image list -a -q -- docker.io/blackdex/rust-musl) - podman image rm -f $(podman image list -a -q -- docker.io/library/alpine) + podman image rm -f $(podman image list -a -q -- docker.io/vaultwarden/web-vault) + podman image rm -f $(podman image list -a -q -- docker.io/library/rust) + podman image rm -f $(podman image list -a -q -- docker.io/library/debian) + podman image rm -f $(podman image list -a -q -- docker.io/tonistiigi/xx) fi rm -rf ${buildfolder} eval "$retval"