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
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:
parent
0d61819184
commit
a528583a3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue