Skip to content

Commit

Permalink
update vagrant api
Browse files Browse the repository at this point in the history
  • Loading branch information
ifurther committed Jan 13, 2024
1 parent 6a8d805 commit 9df3022
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ jobs:
- uses: actions/checkout@v3

- name: Create Vagrant Cloud Box
run: curl "https://vagrantcloud.com/api/v2/box/nixbox/nixos/version/${GITHUB_REF#refs/heads/nixos-}/provider/virtualbox/amd64/upload?access_token=${{ secrets.ATLAS_TOKEN }}"
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
Expand Down

0 comments on commit 9df3022

Please sign in to comment.