Skip to content

Commit

Permalink
Add vagrant boxes caching to CI
Browse files Browse the repository at this point in the history
We're hitting 429 responses when running lots of jobs, presumably
because we are downloading lots of boxes again and again.
This should cache them instead.
  • Loading branch information
VannTen committed Aug 29, 2024
1 parent 924a979 commit 2803946
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab-ci/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
when: always
paths:
- molecule_logs/
cache:
key: vagrant_boxes
paths:
- ~/vagrant.d/boxes/

# CI template for periodic CI jobs
# Enabled when PERIODIC_CI_ENABLED var is set
Expand Down
4 changes: 4 additions & 0 deletions .gitlab-ci/vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
- ./tests/scripts/vagrant_clean.sh
script:
- ./tests/scripts/testcases_run.sh
cache:
key: vagrant_boxes
paths:
- ~/vagrant.d/boxes/

vagrant_ubuntu20-calico-dual-stack:
stage: deploy-extended
Expand Down

0 comments on commit 2803946

Please sign in to comment.