added runner action configuration
This commit is contained in:
parent
c76f31fe4e
commit
8364976299
6
templates/gitea/.env.j2
Normal file
6
templates/gitea/.env.j2
Normal 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}}
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user