.
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 {
|
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',
|
||||||
|
[],
|
||||||
|
[],
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
Reference in New Issue