Skip to content

Commit

Permalink
Run AM playbook test workflow on Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Jan 15, 2025
1 parent aad10f3 commit 616fd1c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/archivematica-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ on:
jobs:
test:
name: Test Archivematica playbook
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/checkout@v4
- name: "Create Vagrant boxes directory"
run: |
mkdir -p /home/runner/.vagrant.d/boxes
mkdir -p /root/.vagrant.d/boxes
- name: "Cache Vagrant boxes"
uses: "actions/cache@v4"
with:
path: "/home/runner/.vagrant.d/boxes"
key: "${{ runner.os }}-boxes"
path: "/root/.vagrant.d/boxes"
key: "${{ runner.os }}-vagrant-boxes"
- name: Install Vagrant
run: |
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
Expand All @@ -34,13 +34,8 @@ jobs:
- name: Install VirtualBox
run: |
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg --dearmor
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian focal contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt update && sudo apt install virtualbox-7.0
- name: "Downgrade VirtualBox"
run: |
sudo apt-get purge virtualbox-7.0
wget -O /tmp/virtualbox-7.0_7.0.14-161095~Ubuntu~focal_amd64.deb -L https://download.virtualbox.org/virtualbox/7.0.14/virtualbox-7.0_7.0.14-161095~Ubuntu~focal_amd64.deb
sudo dpkg -i /tmp/virtualbox-7.0_7.0.14-161095~Ubuntu~focal_amd64.deb
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt update && sudo apt install virtualbox-7.1
- name: Update vbox networks
run: |
sudo mkdir -p /etc/vbox/
Expand All @@ -52,7 +47,8 @@ jobs:
- name: Create the virtual machine and provision it
working-directory: ${{ github.workspace }}/playbooks/archivematica-jammy
run: |
vagrant up
sudo pip install ansible
sudo vagrant up
- name: Test AM API - Get processing configurations
run: |
test $( \
Expand Down

0 comments on commit 616fd1c

Please sign in to comment.