1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

[lxd-import] github: move snap removal to "Reclaim some space" step

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
(cherry picked from commit b7656135800b9e3d3d27b209700f52e6d2dd2ebf)
This commit is contained in:
Simon Deziel
2024-02-07 20:57:07 -05:00
committed by Stéphane Graber
parent ff1139c2ad
commit 759d9ae6e2

View File

@@ -172,8 +172,15 @@ jobs:
- name: Reclaim some space
run: |
# This was inspired from https://github.com/easimon/maximize-build-space
set -eux
sudo snap remove lxd --purge
# Purge older snap revisions that are disabled/superseded by newer revisions of the same snap
snap list --all | while read -r name _ rev _ _ notes _; do
[ "${notes}" = "disabled" ] && snap remove "${name}" --revision "${rev}" --purge
done || true
# This was inspired from https://github.com/easimon/maximize-build-space
df -h /
# dotnet
sudo rm -rf /usr/share/dotnet
@@ -213,11 +220,6 @@ jobs:
sudo add-apt-repository ppa:cowsql/stable -y --no-update
sudo apt-get update
sudo snap remove lxd --purge
# Purge older snap revisions that are disabled/superseded by newer revisions of the same snap
snap list --all | while read -r name _ rev _ _ notes _; do
[ "${notes}" = "disabled" ] && snap remove "${name}" --revision "${rev}" --purge
done || true
sudo apt-get autopurge moby-containerd docker uidmap -y
sudo ip link delete docker0
sudo nft flush ruleset