Skip to content

Commit

Permalink
fix: ci cache [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
damianchojnacki committed Apr 20, 2024
1 parent d7bd6f8 commit 74bd33d
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,16 @@ jobs:
branch: ${{ needs.build.outputs.branch }}
steps:
- uses: actions/checkout@v4
- name: Use cache files
run: sudo chmod -R 777 /var/lib/docker
- name: Cache kind files
uses: actions/cache@v4
id: cache
with:
path: ./cache
path: |
/var/lib/docker/overlay2
/var/lib/docker/volumes/kind-0
key: kind
- name: Use cache files
if: steps.cache.outputs.cache-hit == 'true'
run: |
sudo cp -r cache/overlay2 /var/lib/docker
sudo cp -r cache/kind-0 /var/lib/docker/volumes
- name: Prepare k8s manifests
run: |
DB_NAME="budget_tracker_${{ needs.build.outputs.branch }}"
Expand Down Expand Up @@ -130,12 +129,6 @@ jobs:
cd k8s/tests
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
kubectl kuttl test
- name: Prepare cache files
run: |
mkdir cache
sudo cp -r /var/lib/docker/overlay2 cache
sudo cp -r /var/lib/docker/volumes/kind-0 cache
sudo chown -R $USER:$USER cache
push:
name: Update k8s resources
runs-on: arc-runner-set
Expand Down

0 comments on commit 74bd33d

Please sign in to comment.