Skip to content

Commit

Permalink
Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Ivantsov committed Jan 29, 2024
1 parent e850a13 commit b26f385
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- openshift-ci
jobs:
openshift:
runs-on: macos-latest
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
Expand All @@ -30,16 +30,36 @@ jobs:

- name: Fetch OpenShift binary
run: |
aws s3api get-object --bucket openshift-local --key macos/crc-macos-installer.pkg crc-macos-installer.pkg
aws s3api get-object --bucket openshift-local --key crc crc
chmod +x crc
- name: Create OpenShift Cluster
- 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: |
echo ${{ secrets.OPENSHIFT_PULL_SECRET }} > pull-secret.txt
sudo installer -pkg crc-macos-installer.pkg -target /
crc version
crc config set consent-telemetry no
mkdir -p ~/.crc/cache
wget -q --show-progress https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/bundles/openshift/4.14.7/crc_vfkit_4.14.7_amd64.crcbundle -O ~/.crc/cache/crc_vfkit_4.14.7_amd64.crcbundle
crc setup
crc start -p pull-secret.txt --log-level debug
cat pull-secret.txt
./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 -p pull-secret.txt --log-level debug

0 comments on commit b26f385

Please sign in to comment.