Skip to content

Commit

Permalink
Conditonally upload vm image
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe2 committed May 1, 2022
1 parent bba1dde commit 92ca2a6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci-vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
- 'git-repos.txt'
- 'vm-resources/**'
workflow_dispatch:
inputs:
uploadVmImage:
description: 'Upload image of the built vm'
required: true
default: 'false'

env:
VAGRANT_DEFAULT_PROVIDER: virtualbox
Expand Down Expand Up @@ -49,8 +54,10 @@ jobs:
- name: Package VM
run: |
vagrant package --debug --no-tty --output containers-lab.box --info info.json
- run: ls -la
# - uses: actions/upload-artifact@v3
# with:
# name: containers-lab-vagrant-box
# path: containers-lab.box
- run: ls -la; sha256sum containers-lab.box

- uses: actions/upload-artifact@v3
if: github.event.inputs.uploadVmImage
with:
name: containers-lab-vagrant-box
path: containers-lab.box

0 comments on commit 92ca2a6

Please sign in to comment.