-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (45 loc) · 1.66 KB
/
vagrant-ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: vagrant-ubuntu
on:
push:
branches: master
pull_request:
types:
- opened
jobs:
vagrant-ubuntu-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/install-package@v1.1.0
with:
apt: vagrant qemu-kvm virtualbox libvirt-daemon libvirt-daemon-driver-vbox
- name: test Vagrantfile.ubuntu2004_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.ubuntu2004_64 vagrant up --provision --provider=virtualbox
- name: destroy Vagrantfile.ubuntu2004_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.ubuntu2004_64 vagrant destroy -f
- name: test Vagrantfile.ubuntu2204_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.ubuntu2204_64 vagrant up --provision --provider=virtualbox
- name: destroy Vagrantfile.ubuntu2204_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.ubuntu2204_64 vagrant destroy -f
- name: test Vagrantfile.ubuntu2404_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.ubuntu2404_64 vagrant up --provision --provider=virtualbox
- name: destroy Vagrantfile.ubuntu2404_64
if: always()
run: sudo VAGRANT_VAGRANTFILE=Vagrantfile.ubuntu2404_64 vagrant destroy -f