.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-04-26 13:44:27 +01:00
parent 27a02c3050
commit 601d87537a
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
load("@this//:from-secret.star", "fromSecret") load("@this//:from-secret.star", "fromSecret")
load("@this//:map.star", "map") load("@this//:map.star", "map")
load("@this//:print-secrets.star", "printSecrets") load("@this//:print-secrets.star", "printSecrets")
load("@this//:print-secrets.star", "environment") load("@this//:environment.star", "environment")
load("@this//:print-secrets.star", "export") load("@this//:print-secrets.star", "export")
def wait(delay, name): def wait(delay, name):
@ -136,7 +136,7 @@ def deploy(
"docker network prune -f", "docker network prune -f",
"cd {folder}".format(folder=folder), "cd {folder}".format(folder=folder),
"docker stack rm gitea", "docker stack rm gitea",
"sleep 60", "sleep 30",
"docker stack deploy -c {filename} gitea".format(filename = filename), "docker stack deploy -c {filename} gitea".format(filename = filename),
] ]
} }

View File

@ -1,6 +1,6 @@
load("@this//:map.star", "map") load("@this//:map.star", "map")
load("@this//:from-secret.star", "fromSecret") load("@this//:from-secret.star", "fromSecret")
load("@this//:environment", "environment") load("@this//:environment.star", "environment")
def secretToEnvironment(secret): def secretToEnvironment(secret):
return secret.replace("-", "_").upper() return secret.replace("-", "_").upper()