mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 13:03:11 +00:00
Merge pull request #11341 from tdonohue/min_docker_caching
[GitHub Actions] Decrease cache size of our Docker images in GitHub Actions
This commit is contained in:
4
.github/workflows/reusable-docker-build.yml
vendored
4
.github/workflows/reusable-docker-build.yml
vendored
@@ -164,7 +164,7 @@ jobs:
|
|||||||
# Use GitHub cache to load cached Docker images and cache the results of this build
|
# 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
|
# This decreases the number of images we need to fetch from DockerHub
|
||||||
cache-from: type=gha,scope=${{ inputs.build_id }}
|
cache-from: type=gha,scope=${{ inputs.build_id }}
|
||||||
cache-to: type=gha,scope=${{ inputs.build_id }},mode=max
|
cache-to: type=gha,scope=${{ inputs.build_id }},mode=min
|
||||||
|
|
||||||
# Export the digest of Docker build locally
|
# Export the digest of Docker build locally
|
||||||
- name: Export Docker build digest
|
- name: Export Docker build digest
|
||||||
@@ -216,7 +216,7 @@ jobs:
|
|||||||
# Use GitHub cache to load cached Docker images and cache the results of this build
|
# 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
|
# This decreases the number of images we need to fetch from DockerHub
|
||||||
cache-from: type=gha,scope=${{ inputs.build_id }}
|
cache-from: type=gha,scope=${{ inputs.build_id }}
|
||||||
cache-to: type=gha,scope=${{ inputs.build_id }},mode=max
|
cache-to: type=gha,scope=${{ inputs.build_id }},mode=min
|
||||||
# Export image to a local TAR file
|
# Export image to a local TAR file
|
||||||
outputs: type=docker,dest=/tmp/${{ inputs.build_id }}.tar
|
outputs: type=docker,dest=/tmp/${{ inputs.build_id }}.tar
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user