fix yaml error #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release CI | |
on: | |
push: | |
branches: [ "nixos-**" ] | |
jobs: | |
build: | |
name: Run build ${{ matrix.BUILDER }} ${{ matrix.ARCH }} | |
runs-on: macos-12 | |
strategy: | |
matrix: | |
BUILDER: ['virtualbox-iso.virtualbox', 'qemu.qemu'] | |
ARCH: ['x86_64'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create Vagrant Cloud Box | |
run: | | |
curl \ | |
--request POST \ | |
--header "Content-Type: application/json" \ | |
--header "Authorization: Bearer $ATLAS_TOKEN" \ | |
https://app.vagrantup.com/api/v2/boxes \ | |
--data '{ "box": { "username": "nixbox", "name": "nixos" } }' | |
- name: Setup `packer` | |
uses: hashicorp/setup-packer@main | |
id: setup | |
with: | |
version: "latest" | |
- name: Run build ${{ matrix.BUILDER }} ${{ matrix.ARCH }} and push box to vagrant cloud | |
env: | |
ATLAS_TOKEN: ${{ secrets.ATLAS_TOKEN }} | |
run: make VERSION=${GITHUB_REF#refs/heads/nixos-} BUILDER=${{ matrix.BUILDER }} packer-build |