.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
c0cd448f33
commit
7b4e97a30a
|
@ -0,0 +1,31 @@
|
||||||
|
load("@this//:environment.star", "environment")
|
||||||
|
def buildDockerFolder(
|
||||||
|
dockerFile,
|
||||||
|
image,
|
||||||
|
tag,
|
||||||
|
folder,
|
||||||
|
):
|
||||||
|
return {
|
||||||
|
"name": "build-{tag}".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-docker-folder.sh {dockerFile} $${{LOCAL_DOCKER_REGISTRY}}{image} $${{LOCAL_DOCKER_REGISTRY}}{tag}".format(
|
||||||
|
image = image,
|
||||||
|
dockerFile = dockerFile,
|
||||||
|
tag = tag,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
set -e
|
||||||
|
docker build . -f $1 --build-arg image=$2 -t $3
|
||||||
|
docker push $3
|
Reference in New Issue