persistent action runner for gitea and docker-registry-ui
This commit is contained in:
@@ -10,7 +10,13 @@ job "gitea-runner" {
|
||||
operator = "distinct_hosts"
|
||||
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 {
|
||||
attempts = 5
|
||||
delay = "60s"
|
||||
@@ -18,6 +24,13 @@ job "gitea-runner" {
|
||||
|
||||
task "gitea-runner" {
|
||||
driver = "podman"
|
||||
|
||||
volume_mount {
|
||||
volume = "gitea-runner-data"
|
||||
destination = "/data"
|
||||
read_only = false
|
||||
}
|
||||
|
||||
config {
|
||||
image = "docker.io/gitea/act_runner:nightly"
|
||||
volumes = [
|
||||
@@ -26,8 +39,8 @@ job "gitea-runner" {
|
||||
}
|
||||
|
||||
env {
|
||||
GITEA_INSTANCE_URL = "http://gitea.service.consul"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN = "nRXCoyksvWyPiijnTmcrYO8D8RNBlsCMdGctCLiA"
|
||||
GITEA_INSTANCE_URL = "http://gitea.service.nr5"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN = "djwiQFUh40E9NebcwKHEZeaCdJ3IB1d6ahUWzlaL"
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user