Lets make the frontpage in markdown too
Some checks failed
Build, Push, and Deploy with Blue/Green or Canary / build-push (push) Successful in 16s
Build, Push, and Deploy with Blue/Green or Canary / blue-green-deploy (push) Failing after 0s
Build, Push, and Deploy with Blue/Green or Canary / canary-deploy (push) Failing after 0s

This commit is contained in:
2025-01-04 03:17:08 +01:00
parent 0580e5121e
commit 1f1948e40d
3 changed files with 177 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
job "lifefaq-blue" {
region = "global"
datacenters = ["dc1"]
type = "service"
update {
stagger = "60s"
max_parallel = 1
canary = 1
auto_revert = true
auto_promote = true
progress_deadline = "6m"
}
group "lifefaq-group" {
count = 1
network {
port "port-app" {
to = 9210
}
}
service {
provider = "consul"
name = "lifefaq"
port = "port-app"
tags = [
"blue",
"PORT=${NOMAD_PORT_port-app}"
]
check {
name = "tcp_check"
type = "tcp"
interval = "10s"
timeout = "2s"
}
}
task "lifefaq-task" {
driver = "docker"
config {
image = "registry.i80.dk/gitea/lifefaq:blue"
ports = ["port-app"]
}
env {
APP_ENV = "production"
PORT = "${NOMAD_PORT_port-app}"
}
resources {
cpu = 250
memory = 80
}
}
}
}