-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
92 lines (89 loc) · 2.53 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
80
81
82
83
84
85
86
87
88
89
90
91
92
name: 'YC Function deploy'
description: 'GitHub Action to deploy Serverless Function to Yandex Cloud.'
author: 'Nikolay Matrosov'
inputs:
yc-sa-json-credentials:
required: true
description: 'Json containing authorized key for Service Account. More info https://cloud.yandex.ru/docs/container-registry/operations/authentication#sa-json'
folder-id:
required: true
description: 'Folder ID'
function-name:
description: 'Function Name'
default: ''
required: true
bucket:
description: 'Object Storage bucket name for code'
default: ''
required: false
runtime:
description: 'Runtime for function.'
default: ''
required: true
entrypoint:
description: 'Entrypoint for function'
default: ''
required: true
include:
description: 'Source directories for cloud function in git repo. Multiline'
default: '.'
required: false
exclude:
description: 'Exclude patterns for source directory. Multiline'
default: ''
required: false
source-root:
description: 'Path that will considered as function source root.'
required: false
default: '.'
memory:
description: 'Memory in Mb. Pattern: ^\d+Mb$'
default: '128Mb'
required: false
environment:
description: 'Env variables for function. Multiline'
default: ''
required: false
execution-timeout:
description: 'Execution timeout in seconds'
default: '5'
required: false
service-account:
description: 'Service account for function'
default: ''
required: false
secrets:
description: 'Lockbox secrets. Pattern: "<environmentVariable>=<secretId>/<versionId>/<secretKey>". Multiline'
default: ''
required: false
network-id:
description: 'Function version connectivity. If specified the version will be attached to specified network/subnet(s).'
default: ''
required: false
tags:
description: 'Version tags. Multiline'
default: ''
required: false
logs-disabled:
description: 'Disable functions logging. Default false'
default: 'false'
required: false
logs-group-id:
description: 'Logs group ID. If NOT set, logs will write to auto-created default group.'
default: ''
required: false
log-level:
description: 'Minimum log level (trace, debug, info, warn, error, fatal)'
default: ''
required: false
outputs:
function-id:
description: 'Function ID.'
version-id:
description: 'ID of the newly created function version.'
branding:
color: blue
icon: code
runs:
using: 'node20'
main: 'dist/index.js'