Skip to content

Manually install tools #184

Manually install tools

Manually install tools #184

Workflow file for this run

name: box
on:
pull_request:
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
name: Validate
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- 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@v4
- name: Initialize Packer
run: packer init .
env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Install QEMU
run: brew install qemu
- 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@v4
- name: Initialize Packer
run: packer init .
env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Install VirtualBox
run: |
curl -4sSLo virtualbox.rb $vbcask_url
brew install ./virtualbox.rb
rm ./virtualbox.rb
env:
vbcask_url: "https://raw.githubusercontent.com/Homebrew/homebrew-cask/aa3c55951fc9d687acce43e5c0338f42c1ddff7b/Casks/virtualbox.rb"
- name: Build the Box
run: packer build -only=virtualbox-iso.freebsd .
env:
ntpdate_hosts: ntp.ubuntu.com