Skip to content

Commit

Permalink
Add caching of downloaded ISO image
Browse files Browse the repository at this point in the history
  • Loading branch information
lunkwill42 committed Dec 1, 2023
1 parent 3f1d771 commit 5c39197
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get ISO checksums
id: get-checksum
run: |
echo "checksum=$(cat bullseye.json | jq '.builders[].iso_checksum')" >> $GITHUB_OUTPUT
shell: bash

- name: "Cache downloaded packer images"
uses: actions/cache/saveb@v3
if: always()
id: packer-cache
with:
path: ~/.cache/packer
key: ${{ steps.get-checksum.outputs.checksum }}

- name: Install virtualbox plugin
run: |
packer plugins install github.com/hashicorp/virtualbox
Expand Down

0 comments on commit 5c39197

Please sign in to comment.