.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
6f82de569e
commit
c8799a03c6
12
.drone.star
12
.drone.star
|
@ -90,12 +90,12 @@ def main(ctx):
|
|||
#build("letsencrypt-nginx"),
|
||||
build("drone-starlark"),
|
||||
#buildHome(),
|
||||
buildDockerFolder(
|
||||
"Dockerfile.home",
|
||||
"nginx:latest",
|
||||
"home",
|
||||
"letsencrypt-nginx"
|
||||
),
|
||||
#buildDockerFolder(
|
||||
# "Dockerfile.home",
|
||||
# "nginx:latest",
|
||||
# "home",
|
||||
# "letsencrypt-nginx"
|
||||
#),
|
||||
|
||||
buildDockerFolder(
|
||||
"Dockerfile.blog",
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
load("@this//:environment.star", "environment")
|
||||
def buildDockerFolder(
|
||||
dockerFile,
|
||||
image,
|
||||
tag,
|
||||
folder,
|
||||
):
|
||||
return {
|
||||
"name": "build-{tag}".format(
|
||||
tag = tag,
|
||||
),
|
||||
"image": "docker:dind",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "dockersock",
|
||||
"path": "/var/run",
|
||||
},
|
||||
],
|
||||
"environment": environment([
|
||||
"local-docker-registry",
|
||||
]),
|
||||
"commands": [
|
||||
"cd {folder}".format(folder=folder),
|
||||
"sh build-docker-folder.sh {dockerFile} $${{LOCAL_DOCKER_REGISTRY}}{image} $${{LOCAL_DOCKER_REGISTRY}}{tag}".format(
|
||||
image = image,
|
||||
dockerFile = dockerFile,
|
||||
tag = tag,
|
||||
),
|
||||
],
|
||||
}
|
|
@ -21,7 +21,7 @@ def buildDockerFolder(
|
|||
]),
|
||||
"commands": [
|
||||
"cd {folder}".format(folder=folder),
|
||||
"sh build-docker-folder.sh {dockerFile} $${{LOCAL_DOCKER_REGISTRY}}{image} $${{LOCAL_DOCKER_REGISTRY}}{tag}".format(
|
||||
"sh build-docker-folder.sh {dockerFile} {image} {tag}".format(
|
||||
image = image,
|
||||
dockerFile = dockerFile,
|
||||
tag = tag,
|
||||
|
|
Reference in New Issue