aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-28 11:42:39 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-28 11:42:39 +0100
commit5f0cec7d3ee4720cb092b530fc8b1a9a4393a7ed (patch)
treed8eb9cff0f7009393b2d9ee5b40ac85eea09edae
parent74668a31b225235be5042824f69a3796bfae9db9 (diff)
downloadnixcfg-5f0cec7d3ee4720cb092b530fc8b1a9a4393a7ed.tar.gz
nixcfg-5f0cec7d3ee4720cb092b530fc8b1a9a4393a7ed.zip
woodpecker-ci: higher affinity to scorpio
-rw-r--r--cluster/prod/app/woodpecker-ci/deploy/server.hcl6
1 files changed, 6 insertions, 0 deletions
diff --git a/cluster/prod/app/woodpecker-ci/deploy/server.hcl b/cluster/prod/app/woodpecker-ci/deploy/server.hcl
index c154351..38c0de9 100644
--- a/cluster/prod/app/woodpecker-ci/deploy/server.hcl
+++ b/cluster/prod/app/woodpecker-ci/deploy/server.hcl
@@ -2,6 +2,12 @@ job "woodpecker-ci" {
datacenters = ["neptune", "scorpio"]
type = "service"
+ # prefer scorpio as neptune has bad ipv6 routes to git.deuxfleurs.fr
+ affinity {
+ attribute = "${node.datacenter}"
+ value = "scorpio"
+ }
+
group "server" {
count = 1