drone/drone-starlark/repos/scp.star

25 lines
472 B
Plaintext

def scp(target):
return {
"name": "scp files",
"image": "appleboy/drone-scp:1.6.2",
"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": [
".",
],
},
}