diff --git a/.drone-home.jsonnet b/.drone-home.jsonnet index db689d6..3bcb307 100644 --- a/.drone-home.jsonnet +++ b/.drone-home.jsonnet @@ -181,18 +181,24 @@ local images = { ], }, }, - ),/* - images.ssh { + ), + util.compose( + std.map( + function(s) util.envSet(s), + publicSecrets, + ) + )( + images.ssh + ) + { name: 'deploy portainer', - "environment": environment(secrets), - "settings": { - "envs": [x.replace("-", "_") for x in secrets ], + settings +: { username: util.fromSecret("ssh-root-user"), password: util.fromSecret("ssh-root-password"), - script: [ + script +: [ 'set -e', 'echo go', - ] + + ] /*+ map(export, secrets) + [ "export DRONE_REPO_LINK=$${{DRONE_GITEA_SERVER}}/{namespace}/{name}".format(name=ctx.repo.name, namespace=ctx.repo.namespace), @@ -202,9 +208,9 @@ local images = { "docker stack rm {name}".format(name = name), "sleep 30", "docker stack deploy -c {filename} {name}".format(name= name, filename = filename), - ] + commands + ] + commands */ } - }*/ + } ], } ]