.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-04-24 12:50:26 +01:00
parent f37cc4ac1e
commit 98ca438c47
1 changed files with 5 additions and 6 deletions

View File

@ -2,16 +2,15 @@ def fromSecret(name):
return { return {
"from_secret": name "from_secret": name
} }
dev environment(env):
value={}
return value.update(x.replace("-", "_").upper(), fromSecret(x)) for x in env
def printSecrets(env): def printSecrets(env):
return { return {
"name": "printenv", "name": "printenv",
"image": "appleboy/drone-ssh", "image": "appleboy/drone-ssh",
"environment": { "environment": environment(env),
"LOCAL_DOCKER_REGISTRY": fromSecret("local-docker-registry"),
"SSH_HOST": fromSecret("ssh-host"),
"SSH_USER": fromSecret("ssh-user"),
"SSH_PORT": fromSecret("ssh-port"),
},
"settings": { "settings": {
"envs": [x.replace("-", "_") for x in env], "envs": [x.replace("-", "_") for x in env],
"host": fromSecret("ssh-host"), "host": fromSecret("ssh-host"),