let act-runner build the wiki (#182)
Reviewed-on: https://git.mgrote.net///mg/homeserver/pulls/182 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
5ed3966274
commit
c8c52dc740
3 changed files with 14 additions and 5 deletions
8
docker-compose/act-runner/config.yml.j2
Normal file
8
docker-compose/act-runner/config.yml.j2
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
container:
|
||||||
|
valid_volumes:
|
||||||
|
- /docker/wiki/site
|
||||||
|
log:
|
||||||
|
level: info
|
||||||
|
runner:
|
||||||
|
capacity: 4
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue