From 0e55852f7e8b1b9131fb44c6a6e6af0eb254794a Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Tue, 10 May 2022 15:48:17 +0200 Subject: [PATCH] drone-tests Signed-off-by: Christian Richter --- .drone.star | 36 +++++++++++++++++++++++++++++++++++ motsognir/hooks/post_checkout | 2 -- motsognir/hooks/pre_build | 4 ---- 3 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 .drone.star delete mode 100644 motsognir/hooks/post_checkout delete mode 100644 motsognir/hooks/pre_build diff --git a/.drone.star b/.drone.star new file mode 100644 index 0000000..7f904d7 --- /dev/null +++ b/.drone.star @@ -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" + } + } + ] + } diff --git a/motsognir/hooks/post_checkout b/motsognir/hooks/post_checkout deleted file mode 100644 index 5c42267..0000000 --- a/motsognir/hooks/post_checkout +++ /dev/null @@ -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 diff --git a/motsognir/hooks/pre_build b/motsognir/hooks/pre_build deleted file mode 100644 index 2c34175..0000000 --- a/motsognir/hooks/pre_build +++ /dev/null @@ -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