-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
29 lines (27 loc) · 823 Bytes
/
action.yml
File metadata and controls
29 lines (27 loc) · 823 Bytes
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
27
28
29
name: Docker build
description: Build Docker image and cache it using actions/cache
inputs:
image-name:
description: Image name to tag the image with. Defaults to `${repo-name}/${stage-name}`
required: false
default: ''
stage-name:
description: Name of the stage to build & cache
required: true
cache-path:
description: Directory to load & save image from
required: true
default: '/tmp/docker'
save:
description: "Should the image be saved? If there's a cache hit, this should probably be false."
required: true
default: 'true'
build-args:
description: 'Additional build arguments to be passed to your Dockerfile (JSON array)'
required: false
default: '[]'
runs:
using: node20
main: dist/build/index.js
post: dist/save/index.js
post-if: success()