Skip to content

Commit

Permalink
ci : Install virtiofsd only when runner os is Ubuntu 24.04
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
rohanKanojia committed Oct 22, 2024
1 parent fc48814 commit f10f8c8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/e2e-crc-okd-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,18 @@ jobs:
- name: Install required virtualization software
run: |
sudo apt-get update
sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system virtiofsd
sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system
sudo usermod -a -G libvirt $USER
UBUNTU_VERSION=`cat /etc/os-release | grep VERSION_ID | awk -F= '{print $2}' | tr -d '"'`
echo "Ubuntu version is $UBUNTU_VERSION"
if [ $UBUNTU_VERSION == "22.04" ]; then
echo "IT's 22.04, virtiofsd would be already installed"
elif [ $UBUNTU_VERSION == "24.04" ]; then
echo "IT's 24.04, installing virtiofsd"
sudo apt install virtiofsd
else
echo "None found, Actual $UBUNTU_VERSION"
fi
- name: Remove unwanted stuff to free up disk image
run: |
sudo rm -rf /usr/share/dotnet
Expand Down

0 comments on commit f10f8c8

Please sign in to comment.