From 32694e8feb4fc11bcc99b54ed0918fc98156ec17 Mon Sep 17 00:00:00 2001 From: Phil Date: Mon, 25 Nov 2024 10:35:26 -0700 Subject: [PATCH] add action runner for gita --- roles/docker/tasks/gitea.yml | 1 + roles/docker/templates/gitea-compose.yml.j2 | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/roles/docker/tasks/gitea.yml b/roles/docker/tasks/gitea.yml index 2005f57..40bc3a3 100644 --- a/roles/docker/tasks/gitea.yml +++ b/roles/docker/tasks/gitea.yml @@ -4,6 +4,7 @@ state: directory loop: - /opt/stacks/gitea + - /opt/stacks/gitea/data - name: Template out the compose file ansible.builtin.template: diff --git a/roles/docker/templates/gitea-compose.yml.j2 b/roles/docker/templates/gitea-compose.yml.j2 index 240e540..97f262f 100644 --- a/roles/docker/templates/gitea-compose.yml.j2 +++ b/roles/docker/templates/gitea-compose.yml.j2 @@ -22,6 +22,21 @@ services: - 222:22 extra_hosts: - 'auth.thesatelliteoflove.com:172.20.0.5' + runner: + image: gitea/act_runner:nightly + depends_on: + - server + environment: + - CONFIG_FILE=/config.yaml + - GITEA_INSTANCE_URL=http://gitea:3000 + - GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea_runner_key }} + - GITEA_RUNNER_NAME=runner_1 + - GITEA_RUNNER_LABELS=docker + volumes: + - ./runner-config.yaml:/config.yaml + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock + - /opt/stacks/caddy/site:/sites volumes: gitea: driver: local