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