-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
79 lines (79 loc) · 2.21 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: "Goblet Deploy"
description: "Deploy your Goblet App"
author: "Austen Novis"
inputs:
project:
description: gcloud project to deploy to
required: true
location:
description: region to deploy to
required: true
goblet-path:
description: Path to a goblet app directory in which `main.py`, `requirements.txt` and `.goblet\` should be stored
required: false
default: "."
stage:
description: deployment stage
required: false
default: ""
envars:
description: |-
list of key, value pairs that should be added to the function's environment variables
written as '{k1}:{v1},{k2}:{v2},...'
required: false
default: ""
build-envars:
description: |-
list of key, value pairs that should be added to the function's build environment variables
written as '{k1}:{v1},{k2}:{v2},...'
required: false
default: ""
command:
description: |-
Complete goblet command. For example "goblet openapi FUNCTION"
required: false
default: ""
artifact-auth:
description: enable authentication to artifact registry
required: false
default: "no"
poetry:
description: use poetry instead of pip
required: false
default: "no"
poetry_version:
description: poetry version to use
required: false
default: "1.1.14"
requirements:
description: filename and path for requirement file
required: false
default: "requirements.txt"
apt_packages:
description: |-
List of packages to apt install before running the deploy. Some python dependencies
like cv2 require additional apt packages. Comma delimited: `dep1,dep2,dep3...`
required: false
default: ""
outputs:
openapispec:
description: "The openapispec that is generated if it exists"
branding:
icon: upload-cloud
color: blue
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.project }}
- ${{ inputs.location }}
- ${{ inputs.goblet-path }}
- ${{ inputs.stage }}
- ${{ inputs.envars }}
- ${{ inputs.build-envars }}
- ${{ inputs.command }}
- ${{ inputs.artifact-auth }}
- ${{ inputs.poetry }}
- ${{ inputs.poetry_version }}
- ${{ inputs.requirements }}
- ${{ inputs.apt_packages }}