Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
44
.drone.star
44
.drone.star
@@ -7,30 +7,28 @@ def main(ctx):
|
||||
def step(arch):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"name": "build-%s" % arch,
|
||||
"type": "docker",
|
||||
"name": "docker-%s" % (arch),
|
||||
"platform": {
|
||||
"os": "linux",
|
||||
"arch": arch,
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"name": "build",
|
||||
"image": "plugins/docker",
|
||||
"repo": "dragonchaser/motsognir",
|
||||
"volumes": [
|
||||
{
|
||||
"name":"docker_sock",
|
||||
"path":"/var/run/docker.sock"
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
"cd motsognir",
|
||||
"docker build -t dragonchaser/motsognir:latest ."
|
||||
]
|
||||
}
|
||||
"name": "dryrun",
|
||||
"image": "plugins/docker",
|
||||
"settings": {
|
||||
"dockerfile": "motsognir/Dockerfile",
|
||||
"dry_run": "true",
|
||||
"purge":"true",
|
||||
"repo": "dragonchaser/dockerhub-autobuild",
|
||||
"tag": "latest"
|
||||
}
|
||||
},
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name":"docker_sock",
|
||||
"host": {
|
||||
"path": "/var/run/docker.sock"
|
||||
}
|
||||
}
|
||||
]
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user