Fix environ

This commit is contained in:
2025-04-15 13:15:21 +02:00
committed by Tobias Diekershoff
parent 24ee1225fe
commit 76f27c6895
2 changed files with 5 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ services:
secrets:
- KEY_PRIVATE
- KEY_PASSWORD
- GIT_TOKEN
volumes:
- website-cached:/website-cached
volumes:
@@ -22,3 +23,5 @@ secrets:
environment: KEY_PRIVATE
KEY_PASSWORD:
environment: KEY_PASSWORD
GIT_TOKEN:
environment: GIT_TOKEN

View File

@@ -15,6 +15,8 @@ if [ -f /run/secrets/KEY_PRIVATE ]; then
chmod 400 /run/secrets/KEY_*
PASSWORD="$(cat "/run/secrets/KEY_PASSWORD")"
PRIVATE="$(cat "/run/secrets/KEY_PRIVATE")"
GIT_TOKEN="$(cat "/run/secrets/GIT_TOKEN")"
# Really should be able to just read from the private path, but for some reason ssh-add fails when using the actual path
# But works when you cat the path into another file and then load it
# Or cat the file and pipe it in through stdin