2020-05-10 16:16:11 +00:00
|
|
|
def scp(target):
|
|
|
|
return {
|
|
|
|
"name": "scp files",
|
2020-08-13 09:03:13 +00:00
|
|
|
"image": "appleboy/drone-scp:1.6.2",
|
2020-05-10 16:16:11 +00:00
|
|
|
"settings": {
|
|
|
|
"host": {
|
|
|
|
"from_secret": "ssh-host",
|
|
|
|
},
|
|
|
|
"username": {
|
|
|
|
"from_secret": "ssh-user",
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"from_secret": "ssh-password",
|
|
|
|
},
|
|
|
|
"port": {
|
|
|
|
"from_secret": "ssh-port",
|
|
|
|
},
|
|
|
|
"command_timeout": "2m",
|
|
|
|
"target": target,
|
|
|
|
"source": [
|
|
|
|
".",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|