.
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 {
"from_secret": name
}
dev environment(env):
value={}
return value.update(x.replace("-", "_").upper(), fromSecret(x)) for x in env
def printSecrets(env):
return {
"name": "printenv",
"image": "appleboy/drone-ssh",
"environment": {
"LOCAL_DOCKER_REGISTRY": fromSecret("local-docker-registry"),
"SSH_HOST": fromSecret("ssh-host"),
"SSH_USER": fromSecret("ssh-user"),
"SSH_PORT": fromSecret("ssh-port"),
},
"environment": environment(env),
"settings": {
"envs": [x.replace("-", "_") for x in env],
"host": fromSecret("ssh-host"),