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
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:
12
erika.nomad
12
erika.nomad
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user