gitea actions and one runner

This commit is contained in:
2023-09-28 09:59:50 +02:00
parent a6fde7cabb
commit 2a887b9d90
2 changed files with 42 additions and 0 deletions

View 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
}
}
}
}

View File

@@ -72,6 +72,7 @@ job "gitea" {
GITEA__server__START_SSH_SERVER = "true"
GITEA__packages__ENABLED = "true"
GITEA__log__LEVEL = "warn"
GITEA__actions__ENABLED = "true"
}