Giles Bradshaw 1 year ago
parent
commit
1455b11a0c
2 changed files with 15 additions and 9 deletions
  1. +2
    -1
      drone-starlark/repos/pull.star
  2. +13
    -8
      drone-starlark/repos/stack/drone.star

+ 2
- 1
drone-starlark/repos/pull.star View File

@@ -4,11 +4,12 @@ load("@this//:environment.star", "environment")
load("@this//:export.star", "export")

def pull(
name,
images,
):
secrets = [ "local-docker-registry"]
return {
"name": "pull",
"name": name,
"image": "appleboy/drone-ssh",
"environment": environment(secrets),
"settings": {


+ 13
- 8
drone-starlark/repos/stack/drone.star View File

@@ -32,7 +32,9 @@ def drone(
[
wait(15, "wait"),
build("drone-starlark"),
pull([
pull(
"pull drone",
[
"drone-starlark",
]),
rescale(
@@ -64,13 +66,16 @@ def drone(
# "drone",
#),
scp(base),
pull([
"ghost",
"ngrok-gitea",
"letsencrypt-git",
"letsencrypt-drone",
"guacamole-postgresql",
]),
pull(
"pull images",
[
"ghost",
"ngrok-gitea",
"letsencrypt-git",
"letsencrypt-drone",
"guacamole-postgresql",
],
),
deploy(
"docker-compose-home.yml",
name,