From 52cfe541290d8921425ea3c67329d0d14d3ec3a2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 8 Feb 2024 16:10:39 +0100 Subject: [PATCH] prod: install woodpecker-ci --- .../prod/app/woodpecker-ci/deploy/server.hcl | 165 ++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 cluster/prod/app/woodpecker-ci/deploy/server.hcl diff --git a/cluster/prod/app/woodpecker-ci/deploy/server.hcl b/cluster/prod/app/woodpecker-ci/deploy/server.hcl new file mode 100644 index 0000000..5e40701 --- /dev/null +++ b/cluster/prod/app/woodpecker-ci/deploy/server.hcl @@ -0,0 +1,165 @@ +job "woodpecker-ci" { + datacenters = ["neptune", "scorpio"] + type = "service" + + group "server" { + count = 1 + + constraint { + attribute = "${attr.unique.hostname}" + operator = "=" + value = "celeri" + } + + network { + port "web_port" { + static = 14080 + to = 14080 + } + port "grpc_port" { + static = 14090 + to = 14090 + } + port "grpc_tls_port" { + static = 14453 + to = 14453 + } + } + + task "server" { + driver = "docker" + config { + image = "woodpeckerci/woodpecker-server:v2.3.0" + ports = [ "web_port", "grpc_port" ] + network_mode = "host" + } + + template { + data = <