persistent action runner for gitea and docker-registry-ui

This commit is contained in:
2023-10-01 17:50:05 +02:00
parent cbbdf4dd1b
commit e8890d8bb5

View File

@@ -10,7 +10,13 @@ job "gitea-runner" {
operator = "distinct_hosts" operator = "distinct_hosts"
value = "true" value = "true"
} }
volume "gitea-runner-data" {
type = "csi"
source = "gitea-runner-data"
read_only = false
access_mode = "multi-node-multi-writer"
attachment_mode = "file-system"
}
restart { restart {
attempts = 5 attempts = 5
delay = "60s" delay = "60s"
@@ -18,6 +24,13 @@ job "gitea-runner" {
task "gitea-runner" { task "gitea-runner" {
driver = "podman" driver = "podman"
volume_mount {
volume = "gitea-runner-data"
destination = "/data"
read_only = false
}
config { config {
image = "docker.io/gitea/act_runner:nightly" image = "docker.io/gitea/act_runner:nightly"
volumes = [ volumes = [
@@ -26,8 +39,8 @@ job "gitea-runner" {
} }
env { env {
GITEA_INSTANCE_URL = "http://gitea.service.consul" GITEA_INSTANCE_URL = "http://gitea.service.nr5"
GITEA_RUNNER_REGISTRATION_TOKEN = "nRXCoyksvWyPiijnTmcrYO8D8RNBlsCMdGctCLiA" GITEA_RUNNER_REGISTRATION_TOKEN = "djwiQFUh40E9NebcwKHEZeaCdJ3IB1d6ahUWzlaL"
} }