fix: use registry.i80.dk (Harbor) instead of ghcr.io
Some checks failed
Build and Deploy classify service / build-and-deploy (push) Failing after 8s
Deploy fil (kreuzberg) / deploy (push) Successful in 45s

- classify.yml: build/push to registry.i80.dk/gitea/kreuzberg-classify
- classify.nomad: pull from registry.i80.dk with Harbor robot token from Consul KV
This commit is contained in:
Henrik Jess Nielsen
2026-06-05 20:59:44 +02:00
parent 58210207ea
commit bd5cbc6827
2 changed files with 32 additions and 10 deletions

View File

@@ -70,9 +70,13 @@ job "classify" {
driver = "docker"
config {
image = "ghcr.io/hjess/kreuzberg-classify:latest"
image = "registry.i80.dk/gitea/kreuzberg-classify:latest"
ports = ["http"]
force_pull = true
auth {
username = "robot$gitserver"
password = "${HARBOR_ROBOT_TOKEN}"
}
}
env {
@@ -80,6 +84,14 @@ job "classify" {
PORT = "${NOMAD_PORT_http}"
}
template {
data = <<EOH
HARBOR_ROBOT_TOKEN="{{ key "harbor/robot/token" }}"
EOH
destination = "secrets/registry.env"
env = true
}
restart {
attempts = 5
interval = "10m"