Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Jan 23, 2025
1 parent e4ba977 commit 0c5df13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vagrant-box-archivematica.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
run: |
cd ${{ github.workspace }}/packer/templates/vagrant-box-archivematica
packer init template.json.pkr.hcl
packer build -on-error=abort template.json.pkr.hcl
packer build -on-error=abort -var "release=${{ matrix.ubuntu-version }}" template.json.pkr.hcl
mv ${{ github.workspace }}/packer/builds/virtualbox/vagrant-am.box \
${{ github.workspace }}/archivematica-vagrant-v1.17.0.box
- name: Provision a test VM with the new image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ packer {
}
}

variable "release" {
type = string
default = "22.04"
}

source "virtualbox-ovf" "ubuntu" {
headless = "true"
shutdown_command = "echo 'vagrant' | sudo -S shutdown -P now"
source_path = "../../builds/virtualbox/vagrant-base-ubuntu-22.04-amd64/vagrant-base-ubuntu-22.04-amd64.ovf"
source_path = "../../builds/virtualbox/vagrant-base-ubuntu-${var.release}-amd64/vagrant-base-ubuntu-${var.release}-amd64.ovf"
ssh_password = "vagrant"
ssh_username = "vagrant"
ssh_wait_timeout = "30s"
Expand Down

0 comments on commit 0c5df13

Please sign in to comment.