fix: SERVER_NAME only for prod
This commit is contained in:
parent
0f3784217c
commit
4b0445befe
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user