drone CI
This commit is contained in:
71
apps/drone/live.hcl
Normal file
71
apps/drone/live.hcl
Normal file
@@ -0,0 +1,71 @@
|
||||
job "drone" {
|
||||
datacenters = [
|
||||
"nummer5",
|
||||
]
|
||||
type = "service"
|
||||
|
||||
group "apps" {
|
||||
count = 1
|
||||
|
||||
network {
|
||||
mode = "host"
|
||||
port "http" {
|
||||
to = 80
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
service {
|
||||
name = "drone"
|
||||
port = "http"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.drone.rule=Host(`drone.service.nr5`)",
|
||||
]
|
||||
}
|
||||
|
||||
volume "drone-data" {
|
||||
type = "csi"
|
||||
source = "drone-data"
|
||||
read_only = false
|
||||
access_mode = "single-node-writer"
|
||||
attachment_mode = "file-system"
|
||||
}
|
||||
|
||||
restart {
|
||||
attempts = 5
|
||||
delay = "30s"
|
||||
}
|
||||
|
||||
task "drone" {
|
||||
driver = "podman"
|
||||
volume_mount {
|
||||
volume = "drone-data"
|
||||
destination = "/data"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
config {
|
||||
image = "docker.io/drone/drone:2"
|
||||
ports = ["http"]
|
||||
}
|
||||
|
||||
env {
|
||||
TZ = "Europe/Berlin"
|
||||
DRONE_GITEA_SERVER = "http://gitea.service.nr5"
|
||||
DRONE_GITEA_CLIENT_ID = "6c48da2c-2748-438e-b776-51f41d3fe607"
|
||||
DRONE_GITEA_CLIENT_SECRET = "gto_ewohqwympejkb52veheox6doc4juodojyyvph4yf4gekhgtx7zna"
|
||||
DRONE_RPC_SECRET = "7eb685ed81d0c34bafc5efa7783c20b2"
|
||||
DRONE_SERVER_HOST = "drone.service.nr5"
|
||||
DRONE_SERVER_PROTO = "http"
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 200
|
||||
memory = 128
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user