.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d254a592af
commit
c12254e622
|
@ -3,14 +3,13 @@ def fromSecret(name):
|
|||
"from_secret": name
|
||||
}
|
||||
def environment(env):
|
||||
|
||||
return dict(
|
||||
[(x.replace("-", "_").upper(), fromSecret(x)) for x in env]
|
||||
)
|
||||
|
||||
def printSecrets(env):
|
||||
return {
|
||||
"name": "printenv",
|
||||
"name": "print secrets",
|
||||
"image": "appleboy/drone-ssh",
|
||||
"environment": environment(env),
|
||||
"settings": {
|
||||
|
@ -20,6 +19,7 @@ def printSecrets(env):
|
|||
"username": fromSecret("ssh-user"),
|
||||
"password": fromSecret("ssh-password"),
|
||||
"script": [
|
||||
"rm env-stack",
|
||||
"echo SSH_HOST=$SSH_HOST > env-stack",
|
||||
"echo SSH_PORT=$SSH_PORT >> env-stack",
|
||||
"echo LOCAL_DOCKER_REGISTRY=$LOCAL_DOCKER_REGISTRY >> env-stack",
|
||||
|
|
Reference in New Issue