.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f37cc4ac1e
commit
98ca438c47
11
.drone.star
11
.drone.star
|
@ -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"),
|
||||
|
|
Reference in New Issue