fix: SERVER_NAME only for prod

This commit is contained in:
ange 2024-05-17 15:02:20 +02:00
parent 1abe0f8d37
commit 3017d80d8a
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

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