.
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 {
"kind": "pipeline",
"name": name,
@ -202,18 +202,7 @@ def steps(name, dependsOn):
],
),
wait(15, "wait"),
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(),
],
] + steps,
"services": [
{
"name": "docker",
@ -246,14 +235,32 @@ def steps(name, dependsOn):
}
def main(ctx):
print(ctx)
print('where is this')
if ctx.build.branch == 'home-deploy':
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:
return [
steps('first', []),
pipeline(
'first',
[],
[],
),
]