Fix .env Auslesen ohne source (Klammerfehler bei MW_SITENAME behoben)
Deploy Development / deploy (push) Successful in 59s

This commit is contained in:
Lars Stommer committed 2026-10-24 18:43:42 +02:00
1 parent b0d90f7076
commit 923d8b6049
2 files changed
+8 -11

No files matched your search

+2 -7
View File
@@ -34,7 +34,6 @@ jobs:
set -euo pipefail
STRATO_HOST="51539426.ssh.w1.strato.hosting"
STRATO_USER="stu100093250"
STRATO_WIKI="Karate_Wiki_135"
if [ "$TARGET_ENV" = "production" ]; then
TARGET="/home/lars/docker/karatewiki"
@@ -46,12 +45,9 @@ jobs:
echo "=== Starte Read-Only Sync von Strato nach $TARGET ($SYNC_MODE) ==="
cd "$TARGET"
# Lade lokale .env fuer DB-Zugangsdaten des Ziel-Containers
set -a
source ./.env
set +a
MW_DB_NAME="$(grep '^MW_DB_NAME=' .env | cut -d= -f2-)"
MW_DB_ROOT_PASSWORD="$(grep '^MW_DB_ROOT_PASSWORD=' .env | cut -d= -f2-)"
# SSH-Key vorbereiten (aus Gitea Secret DEPLOY_SSH_KEY oder lokal auf dem Pi)
SSH_KEY_FILE=""
cleanup_key() {
if [ -n "${TEMP_KEY:-}" ] && [ -f "${TEMP_KEY:-}" ]; then
@@ -118,4 +114,3 @@ jobs:
fi
echo "=== Sync von Strato erfolgreich abgeschlossen! ==="