23 lines
526 B
Plaintext
23 lines
526 B
Plaintext
|
load("@this//:environment.star", "environment")
|
||
|
def buildFolder(name, folder):
|
||
|
return {
|
||
|
"name": "build-{folder} {name}".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.sh {name} $${{LOCAL_DOCKER_REGISTRY}}".format(name = name),
|
||
|
],
|
||
|
}
|