Skip to content

Commit

Permalink
Fix caching rpm packages on CircleCI after c5ea52b
Browse files Browse the repository at this point in the history
The change c5ea52b removed the step
"Generate packaged assets" which was actually not just about assets but
also about caching rpm packages. This change reintroduces the caching of
rpm packages as step "Build zypper cache".
  • Loading branch information
Martchus committed Feb 14, 2024
1 parent 748ed58 commit 8042274
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ orbs:
aliases:
- &restore_cache
keys:
- v1-{{ checksum "tools/ci/ci-packages.txt" }}-{{ checksum "tools/ci/build_cache.sh" }}
- v2-{{ checksum "tools/ci/ci-packages.txt" }}-{{ checksum "tools/ci/build_cache.sh" }}

- &save_cache
key: v1-{{ checksum "tools/ci/ci-packages.txt" }}-{{ checksum "tools/ci/build_cache.sh" }}
key: v2-{{ checksum "tools/ci/ci-packages.txt" }}-{{ checksum "tools/ci/build_cache.sh" }}
paths:
- "/var/cache/zypp/packages"

Expand Down Expand Up @@ -140,6 +140,12 @@ jobs:
- restore_cache: *restore_cache
- run: *check_cache
- store_artifacts: *store_logs
- run:
name: "Build zypper cache"
command: |
if [ ! -d /var/cache/zypp/packages/openQA ]; then
bash -x tools/ci/build_cache.sh
fi
- save_cache: *save_cache

cache-fullstack:
Expand Down

0 comments on commit 8042274

Please sign in to comment.