From 2a887b9d90b3adec7f152b19dea51559501ab09b Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Thu, 28 Sep 2023 09:59:50 +0200 Subject: [PATCH] gitea actions and one runner --- apps/gitea/live-runners.hcl | 41 +++++++++++++++++++++++++++++++++++++ apps/gitea/live.hcl | 1 + 2 files changed, 42 insertions(+) create mode 100644 apps/gitea/live-runners.hcl diff --git a/apps/gitea/live-runners.hcl b/apps/gitea/live-runners.hcl new file mode 100644 index 0000000..61dffc3 --- /dev/null +++ b/apps/gitea/live-runners.hcl @@ -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 + } + + } + } +} \ No newline at end of file diff --git a/apps/gitea/live.hcl b/apps/gitea/live.hcl index 44d8206..fc0c592 100644 --- a/apps/gitea/live.hcl +++ b/apps/gitea/live.hcl @@ -72,6 +72,7 @@ job "gitea" { GITEA__server__START_SSH_SERVER = "true" GITEA__packages__ENABLED = "true" GITEA__log__LEVEL = "warn" + GITEA__actions__ENABLED = "true" }