forked from marcodallasanta/ssh-scp-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
61 lines (48 loc) · 1.22 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
name: 'zz-ssh-scp-deploy'
description: 'A GitHub Action that upload the artifact via scp and runs commands before or/and after.'
author: 'Marco Dalla Santa'
inputs:
local:
description: 'Local file path'
required: false
default: './'
remote:
description: 'Remote file path'
required: false
default: '~/'
host:
description: 'Remote server address'
required: true
port:
description: 'Remote server port (default 22)'
required: false
default: 22
user:
description: 'Remote server user'
required: true
password:
description: 'User password'
required: false
key:
description: 'Remote server private key'
required: false
pre_upload:
description: 'Command to run via ssh before scp upload'
required: false
post_upload:
description: 'Command to run via ssh after scp upload'
required: false
ssh_options:
description: 'A set of ssh_option separated by -o'
required: false
default: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
scp_options:
description: 'Flags to use during scp'
required: false
default:
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'upload-cloud'
color: 'green'