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