Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xyb994 authored Jul 1, 2024
1 parent eeec441 commit c6e78a8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- '152-build-on-github-actions'
workflow_dispatch:

env:
VAGRANT_CLOUD_TOKEN: ${{ secrets.VAGRANT_CLOUD_TOKEN }}
GITHUB_KEY: ${{ secrets.GITHUB_KEY }}

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -19,15 +23,22 @@ jobs:
run: |
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install vagrant
sudo apt install virtualbox
sudo apt update && sudo apt install vagrant virtualbox
- name: print versions and install plugin
run: |
vagrant --version
vboxmanage --version
vagrant plugin install vagrant-disksize
- name: authenticate with vagrant cloud
run: |
vagrant cloud auth login --token $VAGRANT_CLOUD_TOKEN
- name: vagrant up
run: |
vagrant up
- name: vagrant halt
run: |
vagrant halt

0 comments on commit c6e78a8

Please sign in to comment.