Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 authored Sep 19, 2024
1 parent 8e766ab commit 7279e45
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/build_vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,39 +40,39 @@ jobs:
# - name: Install Ansible Using PIP2
# run: pip2 install ansible

# Download and add the HashiCorp GPG key
curl -fsSL https://apt.releases.hashicorp.com/gpg -o /tmp/hashicorp.gpg
- name: Download and add the HashiCorp GPG key
run: sudo curl -fsSL https://apt.releases.hashicorp.com/gpg -o /tmp/hashicorp.gpg

# Add the HashiCorp GPG key to the keyring
gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg /tmp/hashicorp.gpg
- name: Add the HashiCorp GPG key to the keyring
run: sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg /tmp/hashicorp.gpg

# Add the HashiCorp repository
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list
- name: Add the HashiCorp repository
run: sudo echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list

# Update apt package index
apt-get update
- name: Update apt package index
run: sudo apt-get update

# Install Vagrant
apt-get install -y vagrant
- name: Install Vagrant
run: sudo apt-get install -y vagrant

# Import GPG keys for VirtualBox
curl -fsSL https://www.virtualbox.org/download/oracle_vbox_2016.asc | apt-key add -
- name: Import GPG keys for VirtualBox
run: sudo curl -fsSL https://www.virtualbox.org/download/oracle_vbox_2016.asc | apt-key add -
curl -fsSL https://www.virtualbox.org/download/oracle_vbox.asc | apt-key add -

# Add VirtualBox repository
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | tee /etc/apt/sources.list.d/virtualbox.list
- name: Add VirtualBox repository
run: sudo echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | tee /etc/apt/sources.list.d/virtualbox.list

# Update apt cache again
apt-get update
- name: Update apt cache again
run: sudo apt-get update

# Install linux headers and dkms
apt-get install -y linux-headers-$(uname -r) dkms
- name: Install linux headers and dkms
run: sudo apt-get install -y linux-headers-$(uname -r) dkms

# Install VirtualBox
apt-get install -y virtualbox-7.0
- name: Install VirtualBox
run: apt-get install -y virtualbox-7.0

- name: Update Repos
run: sudo apt-get update
# - name: Update Repos
# run: sudo apt-get update

#- name: Install VirtualBox
# run: sudo apt-get install virtualbox
Expand Down

0 comments on commit 7279e45

Please sign in to comment.