drone-tests #3
36
.drone.star
Normal file
36
.drone.star
Normal file
@@ -0,0 +1,36 @@
|
||||
def main(ctx):
|
||||
return [
|
||||
step("amd64"),
|
||||
step("arm64"),
|
||||
]
|
||||
|
||||
def step(arch):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"name": "build-%s" % 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 ."
|
||||
]
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name":"docker_sock",
|
||||
"host": {
|
||||
"path": "/var/run/docker.sock"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static . && pwd && ls
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
#register qemu-*-static for all supported processors except the
|
||||
# current one, but also remove all registered binfmt_misc before
|
||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
Reference in New Issue
Block a user