Skip to content

Commit

Permalink
Merge pull request #2 from jumpstarter-dev/add-cleanup
Browse files Browse the repository at this point in the history
Add cleanup
  • Loading branch information
mangelajo authored Jan 30, 2024
2 parents 20f6508 + 625abd4 commit 1dafc33
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/jumpstarter-gh-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Worker local cache
run: |
mkdir -p $HOME/.cache/dl.fedoraproject.org
ln -s $HOME/.cache/dl.fedoraproject.org images/dl.fedoraproject.org
- name: List devices
run: jumpstarter list-devices

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ DEVICE=rpi4-00
###############################################################################

test-in-hardware: umount images/latest.raw images/.prepared
jumpstarter run-script test-tpm-on-latest-raw.yaml
sudo -E jumpstarter run-script test-tpm-on-latest-raw.yaml

write-image: umount images/latest.raw images/.prepared
jumpstarter run-script setup-latest-raw.yaml
sudo -E jumpstarter run-script setup-latest-raw.yaml

power-on:
jumpstarter power on -a $(DEVICE)
Expand Down
9 changes: 8 additions & 1 deletion test-tpm-on-latest-raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,11 @@ steps:
- expect:
this: "Complete!"
timeout: 500


cleanup:
- send:
this:
- "poweroff\n"
- pause: 20
- power: "off"

0 comments on commit 1dafc33

Please sign in to comment.