1
0

gitea: move runner token to a secret

This commit is contained in:
2025-12-01 12:37:25 +01:00
parent 08dba1becc
commit fe926ca3ab
2 changed files with 7 additions and 4 deletions
+7 -4
View File
@@ -1,4 +1,8 @@
--- ---
secrets:
gitea_runner_token:
file: secrets/gitea_runner_token.txt
configs: configs:
caddyfile: caddyfile:
content: | content: |
@@ -559,12 +563,11 @@ services:
environment: environment:
- GITEA_INSTANCE_URL=https://git.${DOMAIN} - GITEA_INSTANCE_URL=https://git.${DOMAIN}
- CONFIG_FILE=/config/config.yaml - CONFIG_FILE=/config/config.yaml
# When using Docker Secrets, it's also possible to use - GITEA_RUNNER_REGISTRATION_TOKEN_FILE=/run/secrets/gitea_runner_token
# GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.
# The env var takes precedence
- GITEA_RUNNER_REGISTRATION_TOKEN=92U7bIiADtqkILwjjj9rffjz8vyNp0zo7uaOgrIG
- GITEA_RUNNER_LABELS="ubuntu-latest:docker://catthehacker/ubuntu:act-latest" - GITEA_RUNNER_LABELS="ubuntu-latest:docker://catthehacker/ubuntu:act-latest"
- GITEA_RUNNER_NAME="NAS_CONTAINER" - GITEA_RUNNER_NAME="NAS_CONTAINER"
secrets:
- gitea_runner_token
restart: unless-stopped restart: unless-stopped
linkace: linkace:
Binary file not shown.