-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
92 lines (92 loc) · 2.93 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 GitHub Runner'
description: 'GitHub Action to deploy container to Yandex Cloud COI VM'
author: 'Nikolay Matrosov'
inputs:
mode:
description: >-
Specify here which mode you want to use:
- 'start' - to start a new runner;
- 'stop' - to stop the previously created runner.
required: true
github-token:
description: >-
GitHub Personal Access Token with the 'repo' scope assigned.
required: true
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'
label:
description: >-
Name of the unique label assigned to the runner.
The label is used to remove the runner from GitHub when the runner is not needed anymore.
This input is required if you use the 'stop' mode.
required: false
runner-home-dir:
description: >-
Directory that contains actions-runner software and scripts. E.g. /home/runner/actions-runner.
required: false
instance-id:
required: false
description: >-
Id of the created instance.
This input is required if you use the 'stop' mode.
image-id:
required: false
description: 'Id of the image that will be used to create boot disk of the VM.'
service-account-id:
required: false
description: 'Id of service account that will be attached to VM.'
cores:
required: false
description: 'Number of Cores'
default: '2'
memory:
required: false
description: 'Memory. Format: `\\d(Mb|Gb)`. E.g. 1Gb'
default: '1GB'
core-fraction:
required: false
description: 'Core fraction'
default: '100'
disk-type:
required: false
description: 'Disk type. Values: network-ssd, network-hdd, etc. More info https://cloud.yandex.com/en-ru/docs/managed-clickhouse/concepts/storage'
default: 'network-ssd'
disk-size:
required: false
description: 'Disk size. Format: `\\d(Mb|Gb)`. E.g. 30Gb'
default: '30GB'
zone-id:
required: false
description: 'Zone ID'
default: 'ru-central1-a'
subnet-id:
required: true
description: 'The subnet ID where the VM will be created'
public-ip:
required: false
description: 'Public IP address'
platform-id:
required: false
description: 'Compute platform Id'
default: 'standard-v3'
outputs:
label:
description: >-
Name of the unique label assigned to the runner.
The label is used in two cases:
- to use as the input of 'runs-on' property for the following jobs;
- to remove the runner from GitHub when it is not needed anymore.
instance-id:
description: >-
YC Instance Id of the created runner.
The id is used to terminate the instance when the runner is not needed anymore.
branding:
color: blue
icon: upload-cloud
runs:
using: 'node16'
main: 'dist/index.js'