let act-runner build the wiki #182

Merged
mg merged 6 commits from ruwi into master 2024-09-16 18:47:36 +02:00
3 changed files with 14 additions and 5 deletions

View file

@ -0,0 +1,8 @@
---
container:
valid_volumes:
- /docker/wiki/site
log:
level: info
runner:
capacity: 4

View file

@ -1,6 +1,5 @@
--- ---
# https://gitea.com/gitea/act_runner/src/branch/main/examples/docker-compose # https://gitea.com/gitea/act_runner/src/branch/main/examples/docker-compose
version: "3.7"
services: services:
runner: runner:
container_name: act-runner container_name: act-runner
@ -8,11 +7,13 @@ services:
restart: always restart: always
volumes: volumes:
- act_runner_data:/data - act_runner_data:/data
- ./config.yml:/config.yml
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
GITEA_INSTANCE_URL: https://git.mgrote.net GITEA_INSTANCE_URL: https://git.mgrote.net
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ lookup('viczem.keepass.keepass', 'gitea_act_runner_token', 'password') }}" # only used on first start, https://git.mgrote.net/admin/actions/runners GITEA_RUNNER_REGISTRATION_TOKEN: "{{ lookup('viczem.keepass.keepass', 'gitea_act_runner_token', 'password') }}" # only used on first start, https://git.mgrote.net/admin/actions/runners
GITEA_RUNNER_NAME: "docker10-act-runner" GITEA_RUNNER_NAME: "docker10-act-runner"
CONFIG_FILE: /config.yml
volumes: volumes:
act_runner_data: act_runner_data:

View file

@ -9,10 +9,10 @@ services:
ports: ports:
- 8087:80 - 8087:80
volumes: volumes:
- /docker/wiki/site:/usr/local/apache2/htdocs/ - /docker/wiki/site/site:/usr/local/apache2/htdocs/
# /docker/wiki/site ist ein lokales Verzeichnis auf docker10 # /docker/wiki/site/site ist ein lokales Verzeichnis auf docker10
# dieser Verzeichnis wird direkt in der wiki ci gemountet # dieser Verzeichnis wird direkt in der Wiki CI gemountet
# und die daten werden dort reingeschrieben # und die Daten werden dort reingeschrieben
healthcheck: healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"] test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 30s interval: 30s