-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
55 lines (54 loc) · 1.6 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# action.yml
name: 'OpenFaaS build and push'
description: 'Builds a docker image from your OpenFaaS function and pushes it to your registry'
branding:
icon: upload-cloud
color: blue
inputs:
stack-file:
description: 'The OpenFaaS function definition file'
required: true
default: 'stack.yml'
docker-username:
description: 'Your docker username with push authorization'
required: true
docker-password:
description: 'Your docker password'
required: true
platforms:
description: 'the platform abbreviations to build for, e. g. linux/amd64,linux/arm/v7'
required: false
default: 'linux/amd64'
tag-alias:
description: 'the tag used to alias docker images, e.g. latest, main etc.'
required: false
deploy:
description: 'Whether the built image shall be deployed (true/false)'
required: false
default: 'false'
openfaas-gateway:
description: 'OpenFaaS gateway URL (http(s)://my-public-gateway.tld)'
required: false
openfaas-username:
description: 'User for authenticating at OpenFaaS gateway'
required: false
default: 'admin'
openfaas-password:
description: 'Password for authenticating at OpenFaaS gateway'
required: false
outputs:
tag:
description: 'Image tag built'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.stack-file }}
- ${{ inputs.docker-username }}
- ${{ inputs.docker-password }}
- ${{ inputs.platforms }}
- ${{ inputs.tag-alias }}
- ${{ inputs.deploy }}
- ${{ inputs.openfaas-gateway }}
- ${{ inputs.openfaas-username }}
- ${{ inputs.openfaas-password }}