Skip to content

Commit 4850922

Browse files
committed
Add the ability to disable image caching (SOFTWARE-5013)
This just disables the GitHub caching: we still cache in the build-push-action because that's a little more fiddly to cache based on a bool
1 parent c528b19 commit 4850922

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ inputs:
3636
e.g. "opensciencegrid/osgvo-docker-pilot:3.6-release"
3737
required: false
3838
default: ''
39-
39+
cache_image:
40+
description: >-
41+
Store built images in GitHub the GitHub cache (default: true)
42+
required: false
43+
default: true
44+
4045
outputs:
4146
tags:
4247
description: >-
@@ -104,6 +109,7 @@ runs:
104109
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
105110

106111
- name: Cache Docker images
112+
if: inputs.cache_image
107113
uses: actions/cache@v2
108114
with:
109115
path: /tmp/.buildx-cache

0 commit comments

Comments
 (0)