From 4b0445befe4220f36f1028e8052aa2c528415bcd Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 17 May 2024 15:02:20 +0200 Subject: [PATCH] fix: SERVER_NAME only for prod --- .gitea/workflows/deploy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index f6d29c0..df9623a 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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 <> .env BASE_URL="$BASE_URL" - PUBLIC_URL="${PUBLIC_URL:-$BASE_URL}" + SERVER_NAME="$SERVER_NAME" EOF cat .env