.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
4de90d2175
commit
b9e2c57691
39
.drone.star
39
.drone.star
|
@ -35,7 +35,25 @@ def wait(delay, name):
|
||||||
"sleep {delay}".format(delay = delay),
|
"sleep {delay}".format(delay = delay),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
def build(name):
|
||||||
|
return {
|
||||||
|
"name": "build-{name}",
|
||||||
|
"image": "docker:dind",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "dockersock",
|
||||||
|
"path": "/var/run",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"environment": environment([
|
||||||
|
"local-docker-registry",
|
||||||
|
]),
|
||||||
|
"commands": [
|
||||||
|
"cd {name}",
|
||||||
|
"docker build . -t $($LOCAL_DOCKER_REGISTRY){name}",
|
||||||
|
"docker push $($LOCAL_DOCKER_REGISTRY){name}",
|
||||||
|
],
|
||||||
|
}
|
||||||
def steps(name, dependsOn):
|
def steps(name, dependsOn):
|
||||||
return {
|
return {
|
||||||
"kind": "pipeline",
|
"kind": "pipeline",
|
||||||
|
@ -49,24 +67,7 @@ def steps(name, dependsOn):
|
||||||
"ssh-port",
|
"ssh-port",
|
||||||
]),
|
]),
|
||||||
wait(15, "wait"),
|
wait(15, "wait"),
|
||||||
{
|
build("guacamole-postgresql"),
|
||||||
"name": "build-postgres",
|
|
||||||
"image": "docker:dind",
|
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "dockersock",
|
|
||||||
"path": "/var/run",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"environment": environment([
|
|
||||||
"local-docker-registry",
|
|
||||||
]),
|
|
||||||
"commands": [
|
|
||||||
"cd guacamole-postgresql",
|
|
||||||
"docker build . -t $($LOCAL_DOCKER_REGISTRY)guacamole-postgresql",
|
|
||||||
"docker push $($LOCAL_DOCKER_REGISTRY)guacamole-postgresql",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "build",
|
"name": "build",
|
||||||
"image": "alpine",
|
"image": "alpine",
|
||||||
|
|
Reference in New Issue