-
Notifications
You must be signed in to change notification settings - Fork 14
65 lines (51 loc) · 1.32 KB
/
packer.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
58
59
60
61
62
63
64
65
name: box
on:
pull_request:
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
name: Validate
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Packer
uses: hashicorp/setup-packer@main
- name: Initialize Packer
run: packer init .
env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Validate Template
run: packer validate .
qemu:
runs-on: macos-latest
name: QEMU Builder
needs: validate
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Initialize Packer
run: packer init .
env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Build the Box
run: packer build -only=qemu.freebsd .
env:
ntpdate_hosts: ntp.ubuntu.com
virtualbox:
runs-on: macos-latest
name: VirtualBox Builder
needs: validate
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Initialize Packer
run: packer init .
env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Build the Box
run: packer build -only=virtualbox-iso.freebsd .
env:
ntpdate_hosts: ntp.ubuntu.com