From 02eab6c33a1c8804570a73a83d1018ca781ed15a Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 10 May 2022 10:35:33 +0200 Subject: [PATCH] add drone arm runner --- drone.nomad | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/drone.nomad b/drone.nomad index 1ef395d..9935257 100644 --- a/drone.nomad +++ b/drone.nomad @@ -1,11 +1,11 @@ job "drone" { datacenters = ["homelab"] type = "service" - constraint { - attribute = "${attr.cpu.arch}" - value = "amd64" + vault { + policies = ["access-tables"] } + group "droneCI" { network { mode = "host" @@ -13,8 +13,9 @@ job "drone" { to = 80 } } - vault { - policies = ["access-tables"] + constraint { + attribute = "${attr.cpu.arch}" + value = "amd64" } task "drone-server" { driver = "docker" @@ -85,4 +86,34 @@ job "drone" { } } + group "Drone-ARM-Runner" { + constraint { + attribute = "${attr.cpu.arch}" + value = "arm" + } + task "drone-ARM-runner"{ + driver = "docker" + config { + image = "drone/drone-runner-docker:latest" + volumes =[ + "/var/run/docker.sock:/var/run/docker.sock", + ] + } + env { + + } + template { + data= <