mirror of
https://gitee.com/jack_whh/ssh-scp-ssh-pipelines.git
synced 2026-03-09 22:42:55 +08:00
initial ssh scp ssh action
This commit is contained in:
38
action.yml
Normal file
38
action.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: 'ssh-scp-ssh-pipelines'
|
||||
description: 'Pipelines: ssh -> scp -> ssh'
|
||||
author: 'Scott Ng'
|
||||
inputs:
|
||||
host:
|
||||
description: 'ssh remote host'
|
||||
required: true
|
||||
port:
|
||||
description: 'ssh remote port'
|
||||
default: 22
|
||||
user:
|
||||
description: 'ssh remote user'
|
||||
required: true
|
||||
key:
|
||||
description: 'content of ssh private key. ex raw content of ~/.ssh/id_rsa'
|
||||
required: false
|
||||
pass:
|
||||
description: 'ssh remote password'
|
||||
required: false
|
||||
connect_timeout:
|
||||
description: 'connection timeout to remote host'
|
||||
default: "30s"
|
||||
required: false
|
||||
first_ssh:
|
||||
description: 'execute pre-commands before scp'
|
||||
required: false
|
||||
scp:
|
||||
description: 'scp from local to remote'
|
||||
required: false
|
||||
last_ssh:
|
||||
description: 'execute post-commands after scp'
|
||||
required: false
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
branding:
|
||||
icon: 'terminal'
|
||||
color: 'gray-dark'
|
||||
Reference in New Issue
Block a user