From 76dfdf63fca6b337008b935e74ad91be27228f7c Mon Sep 17 00:00:00 2001 From: Patrick Stephens Date: Mon, 13 Nov 2023 14:48:27 +0000 Subject: [PATCH] add libvirt group Signed-off-by: Patrick Stephens --- .github/workflows/openshift.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/openshift.yaml b/.github/workflows/openshift.yaml index 47fba04..385c58f 100644 --- a/.github/workflows/openshift.yaml +++ b/.github/workflows/openshift.yaml @@ -11,6 +11,12 @@ jobs: run: sudo apt-get update && sudo apt-get install -y qemu-kvm libvirt-daemon libvirt-daemon-system network-manager shell: bash + - name: Set up user + run: | + sudo groupadd libvirt || true + sudo groupmod -a -U $USER libvirt + shell: bash + - name: Download CRC run: curl -sSfLO https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz shell: bash @@ -27,15 +33,6 @@ jobs: run: echo '${{ secrets.OPENSHIFT_PULL_SECRET }}' > ./pull-secret.txt shell: bash - - name: Debug - run: | - sudo groupadd libvirt - sudo groupmod -a -U $USER libvirt - whoami - groups - sudo groups - shell: bash - - name: Configure CRC run: | /usr/local/bin/crc config set pull-secret-file "$PWD/pull-secret.txt"