Skip to content

Commit

Permalink
Attempt to manage cache via registry
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Feb 16, 2024
1 parent 747a414 commit 77b8dd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,5 @@ jobs:
tags: "${{ steps.generate-tag-list.outputs.taglist }}"
build-args: |
IS_PR_BUILD=${{ github.event_name == 'pull_request' }}
cache-from: type=registry,ref=hub.opensciencegrid.org/pelican_platform/pelican:buildcache
cache-to: type=registry,ref=hub.opensciencegrid.org/pelican_platform/pelican:buildcache,mode=max,ignore-error=true
4 changes: 2 additions & 2 deletions .github/workflows/publish-dev-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ jobs:
file: ./images/dev.Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=hub.opensciencegrid.org/pelican_platform/pelican-dev:buildcache
cache-to: type=registry,ref=hub.opensciencegrid.org/pelican_platform/pelican-dev:buildcache,mode=max,ignore-error=true

0 comments on commit 77b8dd1

Please sign in to comment.