fix(deploy): common..env
Some checks failed
Build and Deploy / build-and-push (push) Successful in 16s
Build and Deploy / deploy (push) Failing after 6s
Build and Deploy / test-backend (push) Successful in 29s
Build and Deploy / test-frontend (push) Successful in 1m1s

This commit is contained in:
2026-03-14 18:42:53 +01:00
parent 6da8b3b6e4
commit be9f303b37
2 changed files with 5 additions and 3 deletions

View File

@@ -191,7 +191,7 @@ jobs:
fi
DEPLOY_OWNER=$(echo '${{ gitea.repository_owner }}' | tr '[:upper:]' '[:lower:]')
cat "deploy/envs/common.env" > /tmp/common_env.env
: > /tmp/common_env.env
cat "deploy/envs/${{ env.ENV }}.env" > /tmp/full_env.env
if [[ "${{ env.ENV }}" == "prod" ]]; then
@@ -218,7 +218,9 @@ jobs:
ADMIN_TTL="${ADMIN_TTL:-480}"
printf 'ADMIN_PASSWORD="%s"\nADMIN_SESSION_SECRET="%s"\nADMIN_SESSION_TTL_MINUTES="%s"\n' \
"${{ secrets.ADMIN_PASSWORD }}" "${{ secrets.ADMIN_SESSION_SECRET }}" "$ADMIN_TTL" >> /tmp/full_env.env
printf 'OPENAI_API_KEY="%s"\n' "${{ secrets.OPENAI_API_KEY }}" >> /tmp/common_env.env
if [[ -n "${{ secrets.OPENAI_API_KEY }}" ]]; then
printf 'OPENAI_API_KEY="%s"\n' "${{ secrets.OPENAI_API_KEY }}" >> /tmp/common_env.env
fi
echo "Preparing to send common env file with variables:"
grep -Ev "PASSWORD|SECRET|KEY|TOKEN" /tmp/common_env.env || true