-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathaction.yml
94 lines (94 loc) · 3.34 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
93
94
name: 'YC Serverless Container Deploy'
description: 'GitHub Action to deploy Serverless Container 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'
container-name:
required: true
description: 'Container name'
folder-id:
required: true
description: 'Folder ID'
public:
required: false
description: 'Make container publicly available. Any user will be able to invoke a container without providing the authorization header'
revision-service-account-id:
required: false
description: 'Id of service account that will be used to pull images to be deployed. Can be omitted if container registry has public access'
revision-cores:
required: false
description: 'Number of Cores'
default: '1'
revision-memory:
required: false
description: 'Memory. Format: `\\d(Mb|Gb)`. E.g. 128Mb'
default: '128Mb'
revision-core-fraction:
required: false
description: 'Core fraction'
default: '100'
revision-concurrency:
required: false
description: 'Number of concurrently handled requests. 1-16'
default: '1'
revision-image-url:
required: true
description: 'Url of the docker image'
revision-execution-timeout:
required: false
description: 'Request execution timeout in seconds'
default: '3'
revision-working-dir:
required: false
description: 'Working directory inside container'
revision-commands:
required: false
description: 'Command'
revision-args:
required: false
description: 'Arguments'
revision-env:
required: false
description: 'Environment variables. Multiline. Format: VARIABLE=value'
revision-secrets:
description: 'Lockbox secrets. Pattern: "<environmentVariable>=<secretId>/<versionId>/<secretKey>". Multiline'
default: ''
required: false
revision-provisioned:
required: false
description: 'Minimum count of provisioned instances'
revision-network-id:
required: false
description: 'Network id that will be attached to revision'
revision-log-options-disabled:
required: false
description: 'Is logging from container disabled. Possible values: "true", "false"'
default: 'false'
revision-log-options-log-group-id:
required: false
description: 'Log group ID'
revision-log-options-folder-id:
required: false
description: 'Folder ID'
revision-log-options-min-level:
required: false
description: 'Minimum log entry level. (level_unspecified, trace, debug, info, warn, error, fatal)'
default: 'level_unspecified'
revision-storage-mounts:
description: 'Storage mounts. Pattern: "S3_PATH:MOUNT_PATH:ACCESS_MODE" or "S3_PATH:MOUNT_PATH". Multiline.
S3_PATH Pattern: "bucketId/bucketFolder" or "bucketId". bucketFolder can be empty to mount all bucket.
ACCESS_MODE is optional parameter. Possible values: "read-only", "ro", "readOnly", "read_only", "ReadOnly", "read-write", "rw", "readWrite", "read_write", "ReadWrite". Default value - "read-only"'
required: false
outputs:
rev:
description: 'Id of created revision'
id:
description: 'Id of serverless container'
branding:
color: blue
icon: upload-cloud
runs:
using: 'node20'
main: 'dist/index.js'