.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
717044d82f
commit
c16a59dd9c
37
.drone.star
37
.drone.star
|
@ -33,24 +33,6 @@ def buildHome():
|
|||
],
|
||||
}
|
||||
|
||||
def buildNginx(name):
|
||||
return {
|
||||
"name": "build-nginx-{name}".format(name=name),
|
||||
"image": "docker:dind",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "dockersock",
|
||||
"path": "/var/run",
|
||||
},
|
||||
],
|
||||
"environment": environment([
|
||||
"local-docker-registry",
|
||||
]),
|
||||
"commands": [
|
||||
"cd letsencrypt-nginx",
|
||||
"sh build.sh {name} $${{LOCAL_DOCKER_REGISTRY}}".format(name = name),
|
||||
],
|
||||
}
|
||||
def pipeline(name, steps, dependsOn):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
|
@ -129,23 +111,4 @@ def main(ctx):
|
|||
[],
|
||||
),
|
||||
]
|
||||
if ctx.build.branch == 'do':
|
||||
return [
|
||||
pipeline(
|
||||
'do-deploy',
|
||||
[
|
||||
build("guacamole-postgresql"),
|
||||
build("letsencrypt-nginx"),
|
||||
buildHome(),
|
||||
buildNginx("blog"),
|
||||
buildNginx("drone"),
|
||||
buildNginx("git"),
|
||||
buildNginx("remote"),
|
||||
buildNginx("chat"),
|
||||
scp("~/stack-deploy"),
|
||||
#deploy("docker-compose-do.yml", "~/stack-deploy"),
|
||||
],
|
||||
[],
|
||||
),
|
||||
]
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
load("@this//:environment.star", "environment")
|
||||
def buildFolder(name, folder):
|
||||
return {
|
||||
"name": "build-{folder} {name}".format(
|
||||
folder=folder,
|
||||
name=name,
|
||||
),
|
||||
"image": "docker:dind",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "dockersock",
|
||||
"path": "/var/run",
|
||||
},
|
||||
],
|
||||
"environment": environment([
|
||||
"local-docker-registry",
|
||||
]),
|
||||
"commands": [
|
||||
"cd {folder}".format(folder=folder),
|
||||
"sh build.sh {name} $${{LOCAL_DOCKER_REGISTRY}}".format(name = name),
|
||||
],
|
||||
}
|
Reference in New Issue