.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d5bb390452
commit
fd66f1f826
58
.drone.star
58
.drone.star
|
@ -37,23 +37,42 @@ def wait(delay, name):
|
||||||
}
|
}
|
||||||
def build(name):
|
def build(name):
|
||||||
return {
|
return {
|
||||||
"name": "build-{name}".format(name=name),
|
"name": "build-{name}".format(name=name),
|
||||||
"image": "docker:dind",
|
"image": "docker:dind",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "dockersock",
|
"name": "dockersock",
|
||||||
"path": "/var/run",
|
"path": "/var/run",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"environment": environment([
|
"environment": environment([
|
||||||
"local-docker-registry",
|
"local-docker-registry",
|
||||||
]),
|
]),
|
||||||
"commands": [
|
"commands": [
|
||||||
"cd {name}".format(name=name),
|
"cd {name}".format(name=name),
|
||||||
"docker build . -t $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
|
"docker build . -t $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
|
||||||
"docker push $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
|
"docker push $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
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 lestencrypt-nginx",
|
||||||
|
"sh build.sh {name} $${LOCAL_DOCKER_REGISTRY}".format(name = name),
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
def steps(name, dependsOn):
|
def steps(name, dependsOn):
|
||||||
return {
|
return {
|
||||||
"kind": "pipeline",
|
"kind": "pipeline",
|
||||||
|
@ -69,6 +88,11 @@ def steps(name, dependsOn):
|
||||||
wait(15, "wait"),
|
wait(15, "wait"),
|
||||||
build("guacamole-postgresql"),
|
build("guacamole-postgresql"),
|
||||||
build("ngrok-gitea"),
|
build("ngrok-gitea"),
|
||||||
|
build("letsencrypt-nginx"),
|
||||||
|
buildNginx("blog"),
|
||||||
|
buildNginx("drone"),
|
||||||
|
buildNginx("git"),
|
||||||
|
buildNginx("remote"),
|
||||||
{
|
{
|
||||||
"name": "build",
|
"name": "build",
|
||||||
"image": "alpine",
|
"image": "alpine",
|
||||||
|
|
Reference in New Issue