-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathaction.yml
70 lines (68 loc) · 1.84 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
name: "SCP File Transfer"
description: "Upload and download files via SCP."
author: "Nicklas Frahm"
inputs:
direction:
description: "transfer direction"
required: yes
source:
description: "source files to copy"
required: yes
target:
description: "target folder"
default: "."
timeout:
description: "timeout for ssh connections"
default: "30s"
action_timeout:
description: "timeout for action"
default: "10m"
host:
description: "ssh host"
required: yes
port:
description: "ssh port"
default: "22"
username:
description: "ssh username"
default: "root"
key:
description: "content of ssh private key. ex raw content of ~/.ssh/id_rsa"
required: yes
fingerprint:
description: "sha256 fingerprint of the host public key"
required: yes
proxy_host:
description: "ssh proxy host"
proxy_port:
description: "ssh proxy port"
default: "22"
proxy_username:
description: "ssh proxy username"
default: "root"
proxy_key:
description: "content of ssh proxy private key. ex raw content of ~/.ssh/id_rsa"
proxy_fingerprint:
description: "sha256 fingerprint of the proxy host public key"
runs:
using: "docker"
image: "Dockerfile"
env:
DIRECTION: ${{ inputs.direction }}
SOURCE: ${{ inputs.source }}
TARGET: ${{ inputs.target }}
TIMEOUT: ${{ inputs.timeout }}
ACTION_TIMEOUT: ${{ inputs.action_timeout }}
HOST: ${{ inputs.host }}
PORT: ${{ inputs.port }}
USERNAME: ${{ inputs.username }}
KEY: ${{ inputs.key }}
FINGERPRINT: ${{ inputs.fingerprint }}
PROXY_HOST: ${{ inputs.proxy_host }}
PROXY_PORT: ${{ inputs.proxy_port }}
PROXY_USERNAME: ${{ inputs.proxy_username }}
PROXY_KEY: ${{ inputs.proxy_key }}
PROXY_FINGERPRINT: ${{ inputs.proxy_fingerprint }}
branding:
icon: "copy"
color: "gray-dark"