.
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//:map.star", "map")
|
||||||
load("@this//:environment.star", "environment")
|
load("@this//:environment.star", "environment")
|
||||||
load("@this//:export.star", "export")
|
load("@this//:export.star", "export")
|
||||||
load("@this//:public-secrets.star", "publicSecrets")
|
|
||||||
load("@this//:secret-secrets.star", "secretSecrets")
|
|
||||||
|
|
||||||
def deploy(
|
def deploy(
|
||||||
filename,
|
filename,
|
||||||
name,
|
name,
|
||||||
folder,
|
folder,
|
||||||
|
secrets,
|
||||||
):
|
):
|
||||||
return {
|
return {
|
||||||
"name": "deploy",
|
"name": "deploy",
|
||||||
"image": "appleboy/drone-ssh",
|
"image": "appleboy/drone-ssh",
|
||||||
"environment": environment(publicSecrets + secretSecrets),
|
"environment": environment(secrets),
|
||||||
"settings": {
|
"settings": {
|
||||||
"envs": [x.replace("-", "_") for x in publicSecrets + secretSecrets ],
|
"envs": [x.replace("-", "_") for x in secrets ],
|
||||||
"host": fromSecret("ssh-host"),
|
"host": fromSecret("ssh-host"),
|
||||||
"port": fromSecret("ssh-port"),
|
"port": fromSecret("ssh-port"),
|
||||||
"username": fromSecret("ssh-root-user"),
|
"username": fromSecret("ssh-root-user"),
|
||||||
|
@ -23,7 +22,7 @@ def deploy(
|
||||||
"script": [
|
"script": [
|
||||||
"set -e"
|
"set -e"
|
||||||
] +
|
] +
|
||||||
map(export, publicSecrets + secretSecrets) +
|
map(export, secrets) +
|
||||||
[
|
[
|
||||||
"docker network prune -f",
|
"docker network prune -f",
|
||||||
"cd {folder}".format(folder=folder),
|
"cd {folder}".format(folder=folder),
|
||||||
|
|
Reference in New Issue