scp step
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
cb901db134
commit
ece961ed00
|
@ -1,7 +1,31 @@
|
|||
local images = {
|
||||
docker: {
|
||||
name: 'docker',
|
||||
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: [
|
||||
images.docker {
|
||||
name: 'docker',
|
||||
privileged: true,
|
||||
volumes: [
|
||||
{
|
||||
|
@ -46,7 +69,9 @@ local images = {
|
|||
},
|
||||
},
|
||||
],
|
||||
steps:[],
|
||||
steps:[
|
||||
images.scp('/stack/root'),
|
||||
],
|
||||
}
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue