Vagrant Up #26
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: Vagrant Up | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
vagrant-up: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Installing this is skipped in CI as using it was causing some corruption in | |
# attempting to mount the shared folder. The guest and host guest additions | |
# versions are close enough that we are fine without it. | |
# - run: vagrant plugin install vagrant-vbguest | |
- run: NO_SUBMISSIONS=1 vagrant up ubuntu-22.04 | |
- name: Validate image | |
run: curl --show-error --fail --include http://localhost:1511 | |
- name: Save image | |
run: vagrant package --output submitty.box | |
- name: Publish image | |
run: | | |
vagrant cloud auth login --token ${{ secrets.VAGRANT_CLOUD_TOKEN }} | |
vagrant cloud publish grand/mybox 0.0.1 virtualbox submitty.box --force --private | |
vagrant cloud auth logout | |