Skip to content

Commit

Permalink
Fix vagrant box caching
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Feb 13, 2024
1 parent 83c2c43 commit 18a2e0c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4
with: {fetch-depth: 1}
continue-on-error: true
- name: Set up vagrant and libvirt
uses: ./.github/actions/vagrant-setup
- name: Open permissions of vagrant cache folders
run: sudo chmod -R 777 /root/.vagrant.d
- name: "Vagrant Cache"
uses: actions/cache@v4
with:
path: |
/root/.vagrant.d/boxes
/root/.vagrant.d/gems
key: vagrant-box-${{ matrix.vm }}
id: vagrant-cache
continue-on-error: true
- name: Set up vagrant and libvirt
uses: ./.github/actions/vagrant-setup
- name: "Vagrant Plugin(s)"
run: sudo vagrant plugin install vagrant-k3s vagrant-reload vagrant-scp
- name: "Download k3s binary"
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/nightly-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4
with: {fetch-depth: 1}
continue-on-error: true
- name: Set up vagrant and libvirt
uses: ./.github/actions/vagrant-setup
- name: Open permissions of vagrant cache folders
run: sudo chmod -R 777 /root/.vagrant.d
- name: "Vagrant Cache"
uses: actions/cache@v4
with:
Expand All @@ -35,9 +40,6 @@ jobs:
/root/.vagrant.d/gems
key: vagrant-box-${{ matrix.vm }}
id: vagrant-cache
continue-on-error: true
- name: Set up vagrant and libvirt
uses: ./.github/actions/vagrant-setup
- name: "Vagrant Plugin(s)"
run: vagrant plugin install vagrant-k3s vagrant-reload
- name: "Vagrant Up ⏩ Install K3s"
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/snapshotter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,18 @@ jobs:
- name: "Download Binary"
uses: actions/download-artifact@v3
with: { name: k3s, path: dist/artifacts/ }
continue-on-error: true
- name: Set up vagrant and libvirt
uses: ./.github/actions/vagrant-setup
- name: Open permissions of vagrant cache folders
run: sudo chmod -R 777 /root/.vagrant.d
- name: "Vagrant Cache"
uses: actions/cache@v4
with:
path: |
/root/.vagrant.d/boxes
/root/.vagrant.d/gems
key: vagrant-box-${{ matrix.vm }}
id: vagrant-cache
continue-on-error: true
- name: Set up vagrant and libvirt
uses: ./.github/actions/vagrant-setup
- name: "Vagrant Plugin(s)"
run: sudo vagrant plugin install vagrant-k3s
- name: "Vagrant Up ⏩ Install K3s"
Expand Down

0 comments on commit 18a2e0c

Please sign in to comment.