fix: SERVER_NAME only for prod
This commit is contained in:
parent
0f3784217c
commit
4b0445befe
@ -12,10 +12,11 @@ jobs:
|
|||||||
BASE_URL="$PROD_URL"
|
BASE_URL="$PROD_URL"
|
||||||
else
|
else
|
||||||
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
|
BASE_URL="${{ gitea.ref_name }}.$(tr / '\n' <<< "${{ gitea.repository }}" | tac | tr '\n' .)k8s.gmoker.com"
|
||||||
|
SERVER_NAME="$BASE_URL"
|
||||||
fi
|
fi
|
||||||
cat <<EOF >> .env
|
cat <<EOF >> .env
|
||||||
BASE_URL="$BASE_URL"
|
BASE_URL="$BASE_URL"
|
||||||
PUBLIC_URL="${PUBLIC_URL:-$BASE_URL}"
|
SERVER_NAME="$SERVER_NAME"
|
||||||
EOF
|
EOF
|
||||||
cat .env
|
cat .env
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user