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