/
action.yml
34 lines (34 loc) · 1.07 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
27
28
29
30
31
32
33
34
name: 'Docker Action'
description: 'Github Action to build and push a Docker image'
inputs:
imageName:
description: 'The name of the docker image'
required: true
workingDirectory:
description: 'The working directory from which to run the docker commands'
required: true
default: '.'
dockerRegistry:
description: 'The registry to push the image name'
required: true
default: 'docker.io'
dockerfile:
description: 'Path to Dockerfile'
required: true
default: 'Dockerfile'
latestBranch:
description: 'From which branch to create latest releases'
required: true
default: 'master'
currentBranch:
description: 'Optionally set the branch name to use for docker tag (some events do not set `GITHUB_REF` to current branch)'
required: false
buildArgs:
description: 'Optionally enter a list of `VARIABLE=value` strings that will be passed each as `--build-arg VARIABLE=value` to docker'
required: false
outputs:
dockerTag:
description: 'The docker tag of the built image'
runs:
using: 'node12'
main: 'dist/index.js'