forked from reproducible-containers/buildkit-cache-dance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
26 lines (26 loc) · 1.06 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Inject/Extract Cache
description: "Injects the cached data into the docker build(x|kit) process"
inputs:
cache-map:
required: true
description: "The map of actions source paths to container destination paths or mount arguments"
cache-source:
deprecationMessage: "Use `cache-map` instead"
description: "Where the cache is stored in the calling workspace. Default: `cache`"
cache-target:
deprecationMessage: "Use `cache-map` instead"
description: "Where the cache is stored in the docker container. Default: `/root/.cache/go-build`"
scratch-dir:
default: scratch
description: "Where the action is stores some temporary files for its processing. Default: `scratch`"
skip-extraction:
default: "false"
description: "Skip the extraction of the cache from the docker container"
save-always:
default: "false"
description: "Run the post step to save the cache even if another step before fails"
runs:
using: 'node20'
main: 'dist/index.js'
post: 'dist/index.js'
post-if: 'success() || github.event.inputs.save-always'