/
step.yaml
88 lines (88 loc) · 2.64 KB
/
step.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
kind: step-type
version: '1.0'
metadata:
name: scp
version: 0.0.6
title: Run SCP
isPublic: false
description: Transfer, copy, or upload files with Secure Copy Protocol.
sources:
- 'https://github.com/codefresh-io/steps/tree/master/incubating/scp'
stage: incubating
maintainers:
- name: Denys Voznyuk
email: denys@codefresh.io
categories:
- utility
official: false
tags: []
icon:
type: svg
url: https://cdn.jsdelivr.net/gh/codefresh-io/steps/incubating/scp/icon.svg
background: "#f4f4f4"
examples:
- description: example-1
workflow:
SCP:
type: scp
arguments:
CF_SCP_HOST: <your_host>
CF_SCP_USER_NAME: <name>
CF_SCP_PASSWORD: <password>
CF_SCP_TARGET: <path_to_target_file>
CF_SCP_PORT: <port>
CF_SCP_SOURCE: <path_to_source_file>
spec:
arguments: |-
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"patterns": [],
"required": [
"CF_SCP_HOST",
"CF_SCP_USER_NAME",
"CF_SCP_PASSWORD",
"CF_SCP_SOURCE",
"CF_SCP_TARGET",
"CF_SCP_PORT"
],
"properties": {
"CF_SCP_HOST": {
"type": "string",
"description": "Target machine host"
},
"CF_SCP_USER_NAME": {
"type": "string",
"description": "Target machine user name"
},
"CF_SCP_PASSWORD": {
"type": "string",
"description": "Target machine user password"
},
"CF_SCP_SOURCE": {
"type": "string",
"description": "path to resource which will be uploaded, example /codefresh/volume/test.txt"
},
"CF_SCP_TARGET": {
"type": "string",
"description": "path to resource on remote machine where resource will be created, example /home/test.txt"
},
"CF_SCP_PORT": {
"type": "number",
"description": "default port is 22, use this variable to specify different port."
}
}
}
steps:
main:
name: scp
image: quay.io/codefreshplugins/scp-plugin
environment:
- 'CF_SCP_HOST=${{CF_SCP_HOST}}'
- 'CF_SCP_USER_NAME=${{CF_SCP_USER_NAME}}'
- 'CF_SCP_PASSWORD=${{CF_SCP_PASSWORD}}'
- 'CF_SCP_SOURCE=${{CF_SCP_SOURCE}}'
- 'CF_SCP_TARGET=${{CF_SCP_TARGET}}'
- 'CF_SCP_PORT=${{CF_SCP_PORT}}'