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