.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-04-28 09:27:15 +01:00
parent 54c1fe0c57
commit fb17748b49
1 changed files with 4 additions and 5 deletions

View File

@ -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),