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

This commit is contained in:
Giles Bradshaw 2020-04-26 11:39:42 +01:00
parent 33559d4b84
commit af9564f438
1 changed files with 24 additions and 17 deletions

View File

@ -175,7 +175,7 @@ def deploy():
] ]
} }
} }
def steps(name, dependsOn): def pipeline(name, steps, dependsOn):
return { return {
"kind": "pipeline", "kind": "pipeline",
"name": name, "name": name,
@ -202,18 +202,7 @@ def steps(name, dependsOn):
], ],
), ),
wait(15, "wait"), wait(15, "wait"),
build("guacamole-postgresql"), ] + steps,
build("ngrok-gitea"),
build("letsencrypt-nginx"),
buildHome(),
buildNginx("blog"),
buildNginx("drone"),
buildNginx("git"),
buildNginx("remote"),
buildNginx("chat"),
scp("~/gitea-drone-stack"),
deploy(),
],
"services": [ "services": [
{ {
"name": "docker", "name": "docker",
@ -246,14 +235,32 @@ def steps(name, dependsOn):
} }
def main(ctx): def main(ctx):
print(ctx)
print('where is this')
if ctx.build.branch == 'home-deploy': if ctx.build.branch == 'home-deploy':
return [ return [
steps('home', []), pipeline(
'home',
[
build("guacamole-postgresql"),
build("ngrok-gitea"),
build("letsencrypt-nginx"),
buildHome(),
buildNginx("blog"),
buildNginx("drone"),
buildNginx("git"),
buildNginx("remote"),
buildNginx("chat"),
scp("~/gitea-drone-stack"),
deploy(),
],
[],
),
] ]
else: else:
return [ return [
steps('first', []), pipeline(
'first',
[],
[],
),
] ]