drone-tests #3

Merged
dragonchaser merged 2 commits from drone-tests into master 2022-05-11 18:02:53 +02:00
3 changed files with 36 additions and 6 deletions
Showing only changes of commit 0e55852f7e - Show all commits

36
.drone.star Normal file
View 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"
}
}
]
}

View File

@@ -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

View File

@@ -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