From 39692236debe1d02f2c039e57e2182fabbfa22ff Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Tue, 28 Jul 2020 15:44:13 +0100 Subject: [PATCH] ssh nothing --- .drone-home.jsonnet | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.drone-home.jsonnet b/.drone-home.jsonnet index fb589ab..fdbc75c 100644 --- a/.drone-home.jsonnet +++ b/.drone-home.jsonnet @@ -1,3 +1,8 @@ +local util = { + fromSecret(secret): { + from_secret: secret, + }, +}; local images = { docker: { name: 'docker', @@ -26,6 +31,16 @@ local images = { ], }, }, + ssh: { + image: 'appleboy/drone-ssh', + settings: { + host: util.fromSecret("ssh-host"), + port: util.fromSecret("ssh-port"), + username: util.fromSecret("ssh-user"), + password: util.fromSecret("ssh-password"), + script: [], + }, + }, wait(delay): { image: 'alpine', name: 'wait', @@ -81,6 +96,9 @@ local images = { '/stack/root' ), images.wait(15), + images.ssh { + name: 'ssh nothing', + }, ], } ]