fix: SERVER_NAME only for prod

This commit is contained in:
ange 2024-05-17 15:02:20 +02:00
parent 0f3784217c
commit 4b0445befe

View File

@ -12,10 +12,11 @@ jobs:
BASE_URL="$PROD_URL"
else
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
SERVER_NAME="$BASE_URL"
fi
cat <<EOF >> .env
BASE_URL="$BASE_URL"
PUBLIC_URL="${PUBLIC_URL:-$BASE_URL}"
SERVER_NAME="$SERVER_NAME"
EOF
cat .env