Skip to content

Ci automate - use standard vagrant process for all distro families (#26) #8

Ci automate - use standard vagrant process for all distro families (#26)

Ci automate - use standard vagrant process for all distro families (#26) #8

name: vagrant-debian
on: [push]
jobs:
vagrant-debian-all:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./vagrant
steps:
- name: add vagrant packages repo
uses: myci-actions/add-deb-repo@11
with:
repo: deb https://apt.releases.hashicorp.com noble main
repo-name: vagrant
keys-asc: https://apt.releases.hashicorp.com/gpg
install: vagrant
- name: checkout repo
uses: actions/checkout@v4
- name: install vagrant/qemu provider
uses: ConorMacBride/[email protected]
with:
apt: vagrant qemu-kvm virtualbox libvirt-daemon libvirt-daemon-driver-vbox
- name: test Vagrantfile.debian11_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.debian11_64 vagrant up --provision --provider=virtualbox
- name: destroy Vagrantfile.debian11_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.debian11_64 vagrant destroy -f
- name: test Vagrantfile.debian12_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.debian12_64 vagrant up --provision --provider=virtualbox
- name: destroy Vagrantfile.debian12_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.debian12_64 vagrant destroy -f