gitea actions and one runner
This commit is contained in:
41
apps/gitea/live-runners.hcl
Normal file
41
apps/gitea/live-runners.hcl
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
job "gitea-runner" {
|
||||||
|
datacenters = [
|
||||||
|
"nummer5",
|
||||||
|
]
|
||||||
|
type = "service"
|
||||||
|
|
||||||
|
group "apps" {
|
||||||
|
count = 1
|
||||||
|
constraint {
|
||||||
|
operator = "distinct_hosts"
|
||||||
|
value = "true"
|
||||||
|
}
|
||||||
|
|
||||||
|
restart {
|
||||||
|
attempts = 5
|
||||||
|
delay = "60s"
|
||||||
|
}
|
||||||
|
|
||||||
|
task "gitea-runner" {
|
||||||
|
driver = "podman"
|
||||||
|
config {
|
||||||
|
image = "docker.io/gitea/act_runner:nightly"
|
||||||
|
volumes = [
|
||||||
|
"/var/run/podman/podman.sock:/var/run/docker.sock"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
env {
|
||||||
|
GITEA_INSTANCE_URL = "http://gitea.service.consul"
|
||||||
|
GITEA_RUNNER_REGISTRATION_TOKEN = "nRXCoyksvWyPiijnTmcrYO8D8RNBlsCMdGctCLiA"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
resources {
|
||||||
|
cpu = 600
|
||||||
|
memory = 512
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -72,6 +72,7 @@ job "gitea" {
|
|||||||
GITEA__server__START_SSH_SERVER = "true"
|
GITEA__server__START_SSH_SERVER = "true"
|
||||||
GITEA__packages__ENABLED = "true"
|
GITEA__packages__ENABLED = "true"
|
||||||
GITEA__log__LEVEL = "warn"
|
GITEA__log__LEVEL = "warn"
|
||||||
|
GITEA__actions__ENABLED = "true"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user