forked from mai-space/action-sshpass-rsync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
59 lines (58 loc) · 1.41 KB
/
action.yml
File metadata and controls
59 lines (58 loc) · 1.41 KB
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
name: Deploy over RSYNC via SSHPASS
inputs:
host:
description: "Host"
required: true
port:
description: "Port"
required: false
default: "22"
user:
description: "Username"
required: true
pass:
description: "Password"
required: false
key:
description: "(Optional) Private key"
required: false
local:
description: 'Local path to deploy'
required: false
default: '*'
extra:
description: 'Extra switches to add to rsync'
required: false
baseswiches:
description: 'Default switches to add to rsync'
required: false
default: '-avrhz'
remote:
description: 'Remote destination'
required: false
default: '~/'
runBeforeDeployment:
description: "Commands that shall be executed before deployment"
required: false
runAfterDeployment:
description: "Commands that shall be executed after deployment"
required: false
description: 'SSHPASS Github Action'
branding:
icon: 'upload-cloud'
color: 'purple'
runs:
using: 'docker'
image: 'Dockerfile'
env:
HOST: ${{ inputs.host }}
PORT: ${{ inputs.port }}
USER: ${{ inputs.user }}
PASS: ${{ inputs.pass }}
KEY: ${{ inputs.key }}
LOCAL: ${{ inputs.local }}
EXTRA: ${{ inputs.extra }}
BASESWICHES: ${{ inputs.baseswiches }}
REMOTE: ${{ inputs.remote }}
RUNBEFORE: ${{ inputs.runBeforeDeployment }}
RUNAFTER: ${{ inputs.runAfterDeployment }}