scp step
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-07-28 15:32:32 +01:00
parent cb901db134
commit ece961ed00
1 changed files with 27 additions and 2 deletions

View File

@ -1,7 +1,31 @@
local images = { local images = {
docker: { docker: {
name: 'docker',
image: 'docker:dind', image: 'docker:dind',
}, },
scp(target): {
name: 'scp',
image: 'appleboy/drone-scp',
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: [
'.',
],
},
},
}; };
[ [
{ {
@ -14,7 +38,6 @@ local images = {
}, },
services: [ services: [
images.docker { images.docker {
name: 'docker',
privileged: true, privileged: true,
volumes: [ volumes: [
{ {
@ -46,7 +69,9 @@ local images = {
}, },
}, },
], ],
steps:[], steps:[
images.scp('/stack/root'),
],
} }
] ]