Giles Bradshaw 1 year ago
parent
commit
cc8cadca12
2 changed files with 9 additions and 7 deletions
  1. +8
    -6
      .drone-home.star
  2. +1
    -1
      drone-starlark/repos/stack/stack-name._star

+ 8
- 6
.drone-home.star View File

@@ -1,17 +1,19 @@

load("@this//stack:drone.star", "drone")
load("@this//stack:stack-name.star", "stackName")
load("@this//stack:stack-root.star", "stackRoot")

def main(ctx):
return drone(
ctx,
"home-deploy",
"/stack/deploy",
"stack",
stackRoot,
stackName,
[
"docker service scale stack_ngrok=1",
"docker service scale stack_chat=1",
"docker service scale stack_letsencrypt-drone=1",
"docker service scale stack_letsencrypt-git=1",
"docker service scale {name}_ngrok=1".format(name=stackName),
"docker service scale {name}_chat=1".format(name=stackName),
"docker service scale {name}_letsencrypt-drone=1".format(name=stackName),
"docker service scale {name}_letsencrypt-git=1".format(name=stackName),
]
)

+ 1
- 1
drone-starlark/repos/stack/stack-name._star View File

@@ -1 +1 @@
stackRoot='${SIGYL_STACK_NAME}'
stackName='${SIGYL_STACK_NAME}'