diff --git a/.github/workflows/openshift.yaml b/.github/workflows/openshift.yaml index d96a4a3db..bd76f23e4 100644 --- a/.github/workflows/openshift.yaml +++ b/.github/workflows/openshift.yaml @@ -39,7 +39,7 @@ jobs: sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system sudo usermod -a -G libvirt $USER - - name: Remove unwanted stuff to free up disk image + - name: Free up disk run: | sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android @@ -55,16 +55,16 @@ jobs: - name: Set the crc config run: | crc config set consent-telemetry no - crc config set network-mode user - name: Setup the crc - run: sudo -su $USER crc setup + run: crc setup - name: Start the crc - run: sudo -su $USER crc start -p pull-secret.txt + run: crc start -p pull-secret.txt - name: Get crc info run: | + sleep 10 output=$(crc console --credentials) login_command=$(echo "$output" | grep -o "oc login -u kubeadmin -p [^ ]* https://api.crc.testing:6443") $(echo "${login_command}")