From a504ae5485b13aa90caf3444389e4ee060e913f5 Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Wed, 28 Feb 2024 11:41:06 -0800 Subject: [PATCH] actions: run docker setup as root --- .github/workflows/artifacts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 1fe4b903..e18c2fee 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -26,6 +26,7 @@ jobs: - name: Setup and configure docker shell: 'script -q -e -c "bash {0}"' run: | + [[ $EUID -ne 0 ]] && exec sudo /bin/sh "$0" "$@" for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; \ do apt-get remove $pkg; \ done