Skip to content

Commit

Permalink
cache
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetsharma21 committed Oct 13, 2024
1 parent 14eccaf commit 316d36e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/sklearnserver-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:

# Cache Docker layers from previous runs
- name: Restore Docker Cache
id: cache # Give an ID to reference later
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
Expand All @@ -55,6 +56,14 @@ jobs:
cache-to: type=gha,dest=/tmp/.buildx-cache,mode=max
provenance: false

# Save cache after running tests, even if it fails
- name: Save Docker Cache
if: ${{ always() }} # Always run this step
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-docker-${{ matrix.platform }}-${{ hashFiles('python/sklearn.Dockerfile') }}

timeout-minutes: 20 # timeout for the test job

# Log the test result after the test job
Expand Down

0 comments on commit 316d36e

Please sign in to comment.