forked from k3s-io/k3s
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Derek Nola <derek.nola@suse.com>
- Loading branch information
Showing
5 changed files
with
78 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: 'Setup Vagrant and Libvirt' | ||
description: 'A composite action that installs latest versions of vagrant and libvirt for use on ubuntu based runners' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Add vagrant to apt-get sources | ||
shell: bash | ||
run: | | ||
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg | ||
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | ||
sudo sed -i 's/^# deb-src/deb-src/' /etc/apt/sources.list | ||
- name: Install vagrant and libvirt | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant | ||
sudo systemctl enable --now libvirtd | ||
- name: Build vagrant dependencies | ||
shell: bash | ||
run: | | ||
sudo apt-get build-dep -y vagrant ruby-libvirt | ||
sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev | ||
- name: Install vagrant-libvirt plugin | ||
shell: bash | ||
run: sudo vagrant plugin install vagrant-libvirt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters