From fe926ca3ab785a83a6979567d8dd863e37bcc859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Mon, 1 Dec 2025 12:37:25 +0100 Subject: [PATCH] gitea: move runner token to a secret --- docker-compose.yml | 11 +++++++---- secrets/gitea_runner_token.txt | Bin 0 -> 62 bytes 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 secrets/gitea_runner_token.txt diff --git a/docker-compose.yml b/docker-compose.yml index 15688f4..8a8f0db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,8 @@ --- +secrets: + gitea_runner_token: + file: secrets/gitea_runner_token.txt + configs: caddyfile: content: | @@ -559,12 +563,11 @@ services: environment: - GITEA_INSTANCE_URL=https://git.${DOMAIN} - CONFIG_FILE=/config/config.yaml - # When using Docker Secrets, it's also possible to use - # GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location. - # The env var takes precedence - - GITEA_RUNNER_REGISTRATION_TOKEN=92U7bIiADtqkILwjjj9rffjz8vyNp0zo7uaOgrIG + - GITEA_RUNNER_REGISTRATION_TOKEN_FILE=/run/secrets/gitea_runner_token - GITEA_RUNNER_LABELS="ubuntu-latest:docker://catthehacker/ubuntu:act-latest" - GITEA_RUNNER_NAME="NAS_CONTAINER" + secrets: + - gitea_runner_token restart: unless-stopped linkace: diff --git a/secrets/gitea_runner_token.txt b/secrets/gitea_runner_token.txt new file mode 100644 index 0000000000000000000000000000000000000000..c8e11118fda35b1982904390549cee519b184bdb GIT binary patch literal 62 zcmV-E0KxwNM@dveQdv+`0PhHgu0W>t8P@NU;UhM#^&EOUA4#iR5Rty4=tHNMw-%uD Ul}C24+2s~?io_oD;179aYh#2Ry#N3J literal 0 HcmV?d00001