-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
94 lines (94 loc) · 2.43 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
# action.yml
name: 'Create GPU'
description: 'Deploy GPU and provide connection details'
inputs:
access-key:
description: 'access-key'
required: true
default: ''
secret-key:
description: 'secret-key'
required: true
default: ''
ssh-key:
description: 'SSH key to add to the target VM to make it possible to connect to your VM'
required: true
default: ''
image:
description: 'OS Image to be installed on the target Virtual Machine Deployment like "Ubuntu-v22.04"'
required: false
default: 'Ubuntu-v22.04'
region:
description: 'Region where you want to deploy like "USA"'
required: false
default: 'United States'
cpu:
description: 'Number of CPU cores for your deployment'
required: false
default: '1'
ram:
description: 'Amount of RAM for your Deployment in MB'
required: false
default: '1024'
disk-size:
description: 'Disk size for your Deployment in MB'
required: false
default: '40960'
disk-type:
description: 'Disk type for your Deployment. Available options: hdd, ssd'
required: false
default: 'hdd'
assign-public-ipv4:
description: 'If true assigns a public ipv4 address for your Deployment'
required: false
default: 'false'
assign-public-ipv6:
description: 'If true assigns a public ipv6 address for your Deployment'
required: false
default: 'false'
assign-ygg-ip:
description: 'If true assigns a yggdrasil address for your Deployment'
required: false
default: 'false'
vpc-id:
description: 'ID of the vpc to deploy your VM into'
required: false
default: ''
host-name:
description: 'Host name for your Deployment'
required: true
default: ''
ssh-key-name:
description: 'SSH key name'
required: true
default: ''
outputs:
uuid:
description: 'uuid'
ip:
description: 'ip'
ipv6:
description: 'ipv6'
ygg:
description: 'ygg'
host:
description: 'host'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.access-key }}
- ${{ inputs.secret-key }}
- ${{ inputs.ssh-key }}
- ${{ inputs.image }}
- ${{ inputs.region }}
- ${{ inputs.cpu }}
- ${{ inputs.ram }}
- ${{ inputs.disk-size }}
- ${{ inputs.disk-type }}
- ${{ inputs.assign-public-ipv4 }}
- ${{ inputs.assign-public-ipv6 }}
- ${{ inputs.assign-ygg-ip }}
- ${{ inputs.vpc-id }}
- ${{ inputs.host-name }}
- ${{ inputs.ssh-key-name }}