Skip to content

Commit

Permalink
ci: only update docker cache if empty or during nighlty builds
Browse files Browse the repository at this point in the history
Signed-off-by: Salvatore Mesoraca <[email protected]>
  • Loading branch information
aiven-sal committed Sep 6, 2024
1 parent 5e0ef01 commit 614df3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Cache docker images
id: custom-cache
uses: actions/cache@v3
with:
path: ./custom-cache/
key: custom-cache
- name: Update Cache
- if: ${{ steps.custom-cache.cache-hit != 'true' || github.event_name == 'schedule' }}
name: Update Cache
run: |
mkdir ./custom-cache/
docker compose --profile all build
Expand Down

0 comments on commit 614df3f

Please sign in to comment.