added runner action configuration

This commit is contained in:
Tobias Lehmann 2024-06-03 11:46:11 +02:00
parent c76f31fe4e
commit 8364976299
2 changed files with 20 additions and 0 deletions

6
templates/gitea/.env.j2 Normal file
View File

@ -0,0 +1,6 @@
SMTP_PASSWORD={{smtp_relay_password}}
DB_NAME=captica_gitea
DB_USER={{gitea_db_user}}
DB_PASSWORD={{gitea_db_password}}
RUNNER_NAME=runner-docker-01
RUNNER_REGISTRATION_TOKEN={{gitea_runner_token}}

View File

@ -35,6 +35,20 @@ services:
volumes:
- {{ service_directory }}/data/db:/var/lib/postgresql/data
runner:
image: gitea/act_runner:latest
restart: always
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "https://git.lehmannhaus.de"
GITEA_RUNNER_REGISTRATION_TOKEN: "${RUNNER_REGISTRATION_TOKEN}"
GITEA_RUNNER_NAME: "${RUNNER_NAME}"
GITEA_RUNNER_LABELS: "nodejs-ubuntu:docker://node:latest,docker-ubuntu:docker://catthehacker/ubuntu:act-latest,docker-ubuntu-nonroot:docker://catthehacker/ubuntu:runner-latest"
volumes:
- /{{ service_directory }}/data/runner-config/config.yaml:/config.yaml
- {{ service_directory }}/data/runner-data:/data
- /var/run/docker.sock:/var/run/docker.sock
networks:
default:
ipam: