forked from dprised/Ubuntu_RDP
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (60 loc) · 1.66 KB
/
Ubuntu_RDP.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
name: Ubuntu RDP
on:
workflow_dispatch:
inputs:
hostname:
description: 'Enter Hostname:'
required: false
default: ubuntu
type: string
username:
description: 'Enter Username:'
required: false
default: user
type: string
password:
description: 'Enter Password:'
required: false
default: root
type: string
Pin:
description: 'Enter a Pin (more or equal to 6 digits)'
required: false
default: 123456
type: number
CRP:
description: 'Visit at http://remotedesktop.google.com/headless and, copy the command after authentication'
required: false
type: string
env:
hostname: ${{ inputs.hostname }}
username: ${{ inputs.username }}
password: ${{ inputs.password }}
Pin: ${{ inputs.Pin }}
CRP: ${{ inputs.CRP }}
jobs:
build:
name: Deploy Server
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Cleanup Junk
run: |
curl -L -o Cleanup.sh \
https://raw.githubusercontent.com/Diwash0007/Ubuntu_RDP/main/Cleanup.sh
chmod +x Cleanup.sh
./Cleanup.sh
- name: Create Server
run: |
curl -L -o Ubuntu_RDP.sh \
https://raw.githubusercontent.com/Diwash0007/Ubuntu_RDP/main/Ubuntu_RDP.sh
chmod +x Ubuntu_RDP.sh
./Ubuntu_RDP.sh
- name: Keep Running
run: |
curl -L -o Keep_Running.sh \
https://raw.githubusercontent.com/Diwash0007/Ubuntu_RDP/main/Keep_Running.sh
chmod +x Keep_Running.sh
./Keep_Running.sh