feat(hermes_infra/gitea): add runner on rudolf-T
This commit is contained in:
@@ -47,6 +47,41 @@ services:
|
||||
secrets:
|
||||
- gitea_cache_secret
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname != rudolf-T
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
|
||||
runner_rudolf_t:
|
||||
image: docker.io/gitea/act_runner:nightly
|
||||
entrypoint: ["/usr/local/bin/runner-run.sh"]
|
||||
environment:
|
||||
CONFIG_FILE: /cfg/config.yaml
|
||||
GITEA_INSTANCE_URL: "https://gitea.rudolf.keenetic.link"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: "ojWqzQ4fj9GsLRIhnC7ELAV5Y5MYyhet36tno8fz"
|
||||
GITEA_RUNNER_NAME: "runner2"
|
||||
GITEA_RUNNER_LABELS: "runner_label1"
|
||||
ACT_RUNNER_EXTERNAL_SECRET_FILE: /run/secrets/gitea_cache_secret
|
||||
networks:
|
||||
- gitea
|
||||
configs:
|
||||
- source: runner_config
|
||||
target: /cfg/config.yaml
|
||||
mode: 0444
|
||||
- source: runner_run
|
||||
target: /usr/local/bin/runner-run.sh
|
||||
mode: 0755
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
secrets:
|
||||
- gitea_cache_secret
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == rudolf-T
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
|
||||
Reference in New Issue
Block a user