diff --git a/.github/workflows/vagrant-box-archivematica.yml b/.github/workflows/vagrant-box-archivematica.yml index f446de3..cff3b9a 100644 --- a/.github/workflows/vagrant-box-archivematica.yml +++ b/.github/workflows/vagrant-box-archivematica.yml @@ -28,16 +28,16 @@ jobs: 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 $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list sudo apt update && sudo apt install virtualbox-7.1 - sudo usermod -a -G vboxusers $USER - name: Install packer plugins run: | packer plugins install github.com/hashicorp/virtualbox packer plugins install github.com/hashicorp/ansible packer plugins install github.com/hashicorp/vagrant + - name: Set the user environment as VirtualBox expects it + run: | + echo "USER=$USER" >> $GITHUB_ENV + echo "LOGNAME=$USER" >> $GITHUB_ENV - name: Build - env: - LOGNAME: "runner" - USER: "runner" run: | cd ${{ github.workspace }}/packer/templates/vagrant-base-ubuntu-20.04-amd64 packer build -on-error=abort template.json