Skip to content

Commit 4efcd69

Browse files
authored
Merge pull request DSpace#11341 from tdonohue/min_docker_caching
[GitHub Actions] Decrease cache size of our Docker images in GitHub Actions
2 parents eaba6fb + 1f8e290 commit 4efcd69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/reusable-docker-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
# Use GitHub cache to load cached Docker images and cache the results of this build
165165
# This decreases the number of images we need to fetch from DockerHub
166166
cache-from: type=gha,scope=${{ inputs.build_id }}
167-
cache-to: type=gha,scope=${{ inputs.build_id }},mode=max
167+
cache-to: type=gha,scope=${{ inputs.build_id }},mode=min
168168

169169
# Export the digest of Docker build locally
170170
- name: Export Docker build digest
@@ -216,7 +216,7 @@ jobs:
216216
# Use GitHub cache to load cached Docker images and cache the results of this build
217217
# This decreases the number of images we need to fetch from DockerHub
218218
cache-from: type=gha,scope=${{ inputs.build_id }}
219-
cache-to: type=gha,scope=${{ inputs.build_id }},mode=max
219+
cache-to: type=gha,scope=${{ inputs.build_id }},mode=min
220220
# Export image to a local TAR file
221221
outputs: type=docker,dest=/tmp/${{ inputs.build_id }}.tar
222222

0 commit comments

Comments
 (0)