.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
54c1fe0c57
commit
fb17748b49
|
@ -2,20 +2,19 @@ load("@this//:from-secret.star", "fromSecret")
|
|||
load("@this//:map.star", "map")
|
||||
load("@this//:environment.star", "environment")
|
||||
load("@this//:export.star", "export")
|
||||
load("@this//:public-secrets.star", "publicSecrets")
|
||||
load("@this//:secret-secrets.star", "secretSecrets")
|
||||
|
||||
def deploy(
|
||||
filename,
|
||||
name,
|
||||
folder,
|
||||
secrets,
|
||||
):
|
||||
return {
|
||||
"name": "deploy",
|
||||
"image": "appleboy/drone-ssh",
|
||||
"environment": environment(publicSecrets + secretSecrets),
|
||||
"environment": environment(secrets),
|
||||
"settings": {
|
||||
"envs": [x.replace("-", "_") for x in publicSecrets + secretSecrets ],
|
||||
"envs": [x.replace("-", "_") for x in secrets ],
|
||||
"host": fromSecret("ssh-host"),
|
||||
"port": fromSecret("ssh-port"),
|
||||
"username": fromSecret("ssh-root-user"),
|
||||
|
@ -23,7 +22,7 @@ def deploy(
|
|||
"script": [
|
||||
"set -e"
|
||||
] +
|
||||
map(export, publicSecrets + secretSecrets) +
|
||||
map(export, secrets) +
|
||||
[
|
||||
"docker network prune -f",
|
||||
"cd {folder}".format(folder=folder),
|
||||
|
|
Reference in New Issue