mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 06:45:13 +01:00
Sync common files from infra repository
Synchronized from bootc-dev/infra@e15b9622fc. Signed-off-by: bootc-dev Bot <bot@bootc.dev>
This commit is contained in:
committed by
John Eckersberg
parent
5c52b25ef9
commit
c7c6d52e51
10
.github/actions/bootc-ubuntu-setup/action.yml
vendored
10
.github/actions/bootc-ubuntu-setup/action.yml
vendored
@@ -14,7 +14,8 @@ runs:
|
||||
run: |
|
||||
set -xeuo pipefail
|
||||
sudo df -h
|
||||
unwanted_pkgs=('^aspnetcore-.*' '^dotnet-.*' '^llvm-.*' 'php.*' '^mongodb-.*' '^mysql-.*'
|
||||
# Use globs for package patterns (apt and dpkg both support fnmatch globs)
|
||||
unwanted_pkgs=('aspnetcore-*' 'dotnet-*' 'llvm-*' 'php*' 'mongodb-*' 'mysql-*'
|
||||
azure-cli google-chrome-stable firefox mono-devel)
|
||||
unwanted_dirs=(/usr/share/dotnet /opt/ghc /usr/local/lib/android /opt/hostedtoolcache/CodeQL)
|
||||
# Start background removal operations as systemd units; if this causes
|
||||
@@ -30,9 +31,12 @@ runs:
|
||||
for x in ${unwanted_dirs[@]}; do
|
||||
runcleanup rm -rf "$x"
|
||||
done
|
||||
# Apt removals in foreground, as we can't parallelize these
|
||||
# Apt removals in foreground, as we can't parallelize these.
|
||||
# Only attempt removal if matching packages are installed.
|
||||
for x in ${unwanted_pkgs[@]}; do
|
||||
/bin/time -f '%E %C' sudo apt-get remove -y $x
|
||||
if dpkg -l "$x" >/dev/null 2>&1; then
|
||||
/bin/time -f '%E %C' sudo apt-get remove -y "$x"
|
||||
fi
|
||||
done
|
||||
# We really want support for heredocs
|
||||
- name: Update podman and install just
|
||||
|
||||
Reference in New Issue
Block a user