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