feat: Configure VITE_API_URL during build via Gitea workflow and Dockerfile, removing local fallback.
Build & Push Hospitality / build-and-push (push) Successful in 3m41s
Build & Push Hospitality / build-and-push (push) Successful in 3m41s
This commit is contained in:
@@ -45,7 +45,14 @@ jobs:
|
||||
# ---------- Frontend ----------
|
||||
- name: Build Frontend (${{ env.TAG }})
|
||||
run: |
|
||||
if [ "$TAG" = "dev" ]; then
|
||||
API_URL="http://t610:5005/api"
|
||||
else
|
||||
API_URL="http://t610:5004/api"
|
||||
fi
|
||||
|
||||
docker build \
|
||||
--build-arg VITE_API_URL=$API_URL \
|
||||
-t $REGISTRY/hospitality-frontend:${TAG} \
|
||||
-f src/hospitality-web/Dockerfile \
|
||||
src/hospitality-web
|
||||
|
||||
Reference in New Issue
Block a user