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