From 2130407a0f9968ae272677e4fe787732b5bdad94 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 31 May 2022 11:59:20 +0200 Subject: Move back to using Docker runner --- app/drone-ci/deploy/bad-runner-vm.hcl | 48 +++++++++++++++++ app/drone-ci/deploy/runner-docker.hcl | 91 +++++++++++++++++++++++++++++++++ app/drone-ci/deploy/runner-insecure.hcl | 91 --------------------------------- app/drone-ci/deploy/runner-vm.hcl | 48 ----------------- 4 files changed, 139 insertions(+), 139 deletions(-) create mode 100644 app/drone-ci/deploy/bad-runner-vm.hcl create mode 100644 app/drone-ci/deploy/runner-docker.hcl delete mode 100644 app/drone-ci/deploy/runner-insecure.hcl delete mode 100644 app/drone-ci/deploy/runner-vm.hcl (limited to 'app') diff --git a/app/drone-ci/deploy/bad-runner-vm.hcl b/app/drone-ci/deploy/bad-runner-vm.hcl new file mode 100644 index 0000000..7c3a7e2 --- /dev/null +++ b/app/drone-ci/deploy/bad-runner-vm.hcl @@ -0,0 +1,48 @@ +job "drone-runner" { + datacenters = ["neptune"] + type = "system" + + group "runner-vm" { + network { + port "ssh" { + static = 22544 + } + } + + task "drone-runner-vm" { + driver = "qemu" + + config { + image_path = "local/drone-runner.qcow2" + accelerator = "kvm" + args = [ + "-drive", "index=1,file=fat:rw:/var/lib/nomad/alloc/${NOMAD_ALLOC_ID}/${NOMAD_TASK_NAME}/secrets,format=raw,media=disk", + "-device", "e1000,netdev=user.0", + "-netdev", "user,id=user.0,hostfwd=tcp::${NOMAD_PORT_ssh}-:22", + "-smp", "2", + ] + port_map { + ssh = 22 + } + } + + artifact { + source = "https://alex.web.deuxfleurs.fr/drone-runner.qcow2.zst" + destination = "local/drone-runner.qcow2" + mode = "file" + } + + template { + data = <