remove old containers after an auto upgrade

This commit is contained in:
Kay0u 2023-05-22 11:44:32 +02:00
parent a323ed0643
commit a89298382e
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -12,6 +12,8 @@ do
update_container "$PREFIX_IMAGE_NAME-$debian_version" "$debian_version" "$ynh_version" "$snapshot" update_container "$PREFIX_IMAGE_NAME-$debian_version" "$debian_version" "$ynh_version" "$snapshot"
done done
done done
# Remove old runner containers
lxc delete -f $(lxc list $PREFIX_IMAGE_NAME-$debian_version-r -c n -f csv)
done done
for debian_version in "bookworm" for debian_version in "bookworm"
@ -22,6 +24,7 @@ do
do do
update_container "$PREFIX_IMAGE_NAME-$debian_version" "$debian_version" "$ynh_version" "$snapshot" update_container "$PREFIX_IMAGE_NAME-$debian_version" "$debian_version" "$ynh_version" "$snapshot"
done done
done
# Remove old runner containers
lxc delete -f $(lxc list $PREFIX_IMAGE_NAME-$debian_version-r -c n -f csv) lxc delete -f $(lxc list $PREFIX_IMAGE_NAME-$debian_version-r -c n -f csv)
done done
done