Skip to content

Commit

Permalink
Add VM log capture on failure
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Oct 18, 2023
1 parent 2b6225c commit 8724dbd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,15 @@ jobs:
run: vagrant provision --provision-with=k3s-status
- name: "k3s-procps"
run: vagrant provision --provision-with=k3s-procps
- name: On Failure, Debug VM status, capture logs
if: ${{ failure() }}
run: |
vagrant global-status
logsDir=$(vboxmanage list vms --long | grep Logs | awk '{print $3" "$4}')
cp "$logsDir"/VBox.log ./${{ matrix.vm }}.log
- name: On Failure, Upload VM logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.vm }}.log
path: ./${{ matrix.vm }}.log

0 comments on commit 8724dbd

Please sign in to comment.