.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Giles Bradshaw 2020-04-25 21:14:33 +01:00
parent 4de90d2175
commit b9e2c57691
1 changed files with 20 additions and 19 deletions

View File

@ -35,7 +35,25 @@ def wait(delay, name):
"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):
return {
"kind": "pipeline",
@ -49,24 +67,7 @@ def steps(name, dependsOn):
"ssh-port",
]),
wait(15, "wait"),
{
"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",
],
},
build("guacamole-postgresql"),
{
"name": "build",
"image": "alpine",