Skip to content

Fetch crc binary

Fetch crc binary #20

Workflow file for this run

name: OpenShift Local Tests
on:
workflow_dispatch:
push:
branches:
- openshift-ci
jobs:
openshift:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
AWS_DEFAULT_REGION: us-east-1
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch OpenShift binary
run: |
wget -q https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.31.0/crc-linux-amd64.tar.xz
tar -xvf crc-linux-amd64.tar.xz
cp crc-linux-2.31.0-amd64/crc crc
chmod +x crc
- name: Install required virtualization software
run: |
sudo apt-get update
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
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
sudo swapoff -a
sudo rm -f /mnt/swapfile
- name: Set the crc config
run: |
./crc config set consent-telemetry no
./crc config set preset okd
./crc config set network-mode user
- name: Setup the crc
run: sudo -su $USER ./crc setup
- name: Start the crc
run: sudo -su $USER ./crc start