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

This commit is contained in:
Giles Bradshaw 2020-04-24 12:42:31 +01:00
parent 68f640f892
commit f37cc4ac1e
1 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@ def fromSecret(name):
return { return {
"from_secret": name "from_secret": name
} }
def printenv(): def printSecrets(env):
return { return {
"name": "printenv", "name": "printenv",
"image": "appleboy/drone-ssh", "image": "appleboy/drone-ssh",
@ -13,12 +13,7 @@ def printenv():
"SSH_PORT": fromSecret("ssh-port"), "SSH_PORT": fromSecret("ssh-port"),
}, },
"settings": { "settings": {
"envs": [ "envs": [x.replace("-", "_") for x in env],
"local_docker_registry",
"ssh_host",
"ssh_user",
"ssh_port",
],
"host": fromSecret("ssh-host"), "host": fromSecret("ssh-host"),
"port": fromSecret("ssh-port"), "port": fromSecret("ssh-port"),
"username": fromSecret("ssh-user"), "username": fromSecret("ssh-user"),
@ -40,7 +35,12 @@ def steps(name):
"disable": True, "disable": True,
}, },
"steps": [ "steps": [
printenv(), printSecrets([
"local-docker-registry",
"ssh-host",
"ssh-user",
"ssh-port",
]),
{ {
"name": "build", "name": "build",
"image": "alpine", "image": "alpine",