.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
33559d4b84
commit
af9564f438
41
.drone.star
41
.drone.star
|
@ -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',
|
||||
[],
|
||||
[],
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue