fix: edge.hcl uses service "forgejo" (Consul) but factory runs Nomad native service discovery (#1114)
Some checks failed
ci/woodpecker/pr/nomad-validate Pipeline is pending
ci/woodpecker/pr/secret-scan Pipeline is pending
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/nomad-validate Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/edge-subpath Pipeline failed

Replace `range service "forgejo"` with `range nomadService "forgejo"` at
lines 133 and 244.  The factory runs with Consul disabled; Nomad native
service discovery requires the `nomadService` template function.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-21 12:54:59 +00:00
parent 0d61819184
commit a528583a3f

View file

@ -130,7 +130,7 @@ job "edge" {
env = true
change_mode = "restart"
data = <<EOT
{{ range service "forgejo" -}}
{{ range nomadService "forgejo" -}}
FORGE_URL=http://{{ .Address }}:{{ .Port }}
{{- end }}
EOT
@ -241,7 +241,7 @@ EOT
env = true
change_mode = "restart"
data = <<EOT
{{ range service "forgejo" -}}
{{ range nomadService "forgejo" -}}
FORGE_URL=http://{{ .Address }}:{{ .Port }}
{{- end }}
EOT