38
.drone.star
38
.drone.star
@@ -7,30 +7,22 @@ def main(ctx):
|
|||||||
def step(arch):
|
def step(arch):
|
||||||
return {
|
return {
|
||||||
"kind": "pipeline",
|
"kind": "pipeline",
|
||||||
"name": "build-%s" % arch,
|
"type": "docker",
|
||||||
|
"name": "docker-%s" % (arch),
|
||||||
|
"platform": {
|
||||||
|
"os": "linux",
|
||||||
|
"arch": arch,
|
||||||
|
},
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "build",
|
"name": "dryrun",
|
||||||
"image": "plugins/docker",
|
"image": "plugins/docker",
|
||||||
"repo": "dragonchaser/motsognir",
|
# "image": "thegeeklab/drone-docker:19",
|
||||||
"volumes": [
|
"settings": {
|
||||||
{
|
"dockerfile": "motsognir/Dockerfile",
|
||||||
"name":"docker_sock",
|
"dry_run": "true",
|
||||||
"path":"/var/run/docker.sock"
|
"repo": "dragonchaser/dockerhub-autobuild",
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"commands": [
|
|
||||||
"cd motsognir",
|
|
||||||
"docker build -t dragonchaser/motsognir:latest ."
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name":"docker_sock",
|
|
||||||
"host": {
|
|
||||||
"path": "/var/run/docker.sock"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user