Skip to content

update secret value setting #12

update secret value setting

update secret value setting #12

Workflow file for this run

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 ${{ secrets.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