add action runner for gita

This commit is contained in:
Phil 2024-11-25 10:35:26 -07:00
parent fdc82ac9f5
commit 32694e8feb
2 changed files with 16 additions and 0 deletions

View File

@ -4,6 +4,7 @@
state: directory state: directory
loop: loop:
- /opt/stacks/gitea - /opt/stacks/gitea
- /opt/stacks/gitea/data
- name: Template out the compose file - name: Template out the compose file
ansible.builtin.template: ansible.builtin.template:

View File

@ -22,6 +22,21 @@ services:
- 222:22 - 222:22
extra_hosts: extra_hosts:
- 'auth.thesatelliteoflove.com:172.20.0.5' - '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: volumes:
gitea: gitea:
driver: local driver: local