Skip to content

Packer

Packer #91

Workflow file for this run

---
name: Packer
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
packer:
runs-on: macos-12
name: packer
defaults:
run:
working-directory: packer
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Cache packer files
uses: actions/cache@v2
with:
path: packer/packer_cache
key: ${{ runner.os }}-${{ hashFiles('packer/guix-vm.json') }}
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install packer
run: brew upgrade packer
- name: Fix Template
run: packer fix guix-vm.json
- name: Validate Template
run: packer validate -syntax-only guix-vm.json
- name: Build Artifact
env:
PACKER_LOG: 1
run: packer build guix-vm.json
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: run-capture
path: packer/capture*.webm