mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Ensure each image has a separate cache. This allows later builds of that same image to inherit that cache.
This commit is contained in:
8
.github/workflows/reusable-docker-build.yml
vendored
8
.github/workflows/reusable-docker-build.yml
vendored
@@ -159,8 +159,8 @@ jobs:
|
||||
labels: ${{ steps.meta_build.outputs.labels }}
|
||||
# Use GitHub cache to load cached Docker images and cache the results of this build
|
||||
# This decreases the number of images we need to fetch from DockerHub
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
cache-from: type=gha,scope=${{ inputs.build_id }}
|
||||
cache-to: type=gha,scope=${{ inputs.build_id }},mode=max
|
||||
|
||||
# Export the digest of Docker build locally (for non PRs only)
|
||||
- name: Export Docker build digest
|
||||
@@ -227,8 +227,8 @@ jobs:
|
||||
labels: ${{ steps.meta_build.outputs.labels }}
|
||||
# Use GitHub cache to load cached Docker images and cache the results of this build
|
||||
# This decreases the number of images we need to fetch from DockerHub
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
cache-from: type=gha,scope=${{ inputs.build_id }}
|
||||
cache-to: type=gha,scope=${{ inputs.build_id }},mode=max
|
||||
# Export image to a local TAR file
|
||||
outputs: type=docker,dest=/tmp/${{ inputs.build_id }}.tar
|
||||
|
||||
|
Reference in New Issue
Block a user