diff --git a/.drone-home.jsonnet b/.drone-home.jsonnet index 155a19f..dae1907 100644 --- a/.drone-home.jsonnet +++ b/.drone-home.jsonnet @@ -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'), + ], } ]