fix: align pipeline and nomad with i80 deployment pattern
All checks were successful
Build and Deploy Erika CV / build-and-deploy (push) Successful in 38s

- Use docker build/push directly (no buildx)
- Add Harbor auth via Consul key in nomad task
- Remove unused buildx steps
This commit is contained in:
Henrik Jess Nielsen
2026-04-19 17:12:33 +02:00
parent daf51d3025
commit 2e3a12f67c
2 changed files with 29 additions and 46 deletions

View File

@@ -71,6 +71,10 @@ job "web-erika" {
image = "registry.i80.dk/gitea/web-erika:latest"
ports = ["http"]
force_pull = true
auth {
username = "robot$gitserver"
password = "${HARBOR_ROBOT_TOKEN}"
}
}
restart {
@@ -80,6 +84,14 @@ job "web-erika" {
mode = "fail"
}
template {
data = <<EOH
HARBOR_ROBOT_TOKEN="{{ key "harbor/robot/token" }}"
EOH
destination = "secrets/registry.env"
env = true
}
env {
APP_ENV = "production"
PORT = "${NOMAD_PORT_http}"