Add build argument for NEXT_PUBLIC_API_URL in Dockerfile and CI/CD workflow
CI/CD - ERP Distribution / Build & Deploy Backend (pull_request) Failing after 11m32s
CI/CD - ERP Distribution / Build & Deploy Frontend (pull_request) Failing after 15m25s

This commit is contained in:
Kalana B. Thilakarathna
2026-09-20 16:51:13 +05:30
parent 1579936baf
commit 3c2dee5b4a
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -61,7 +61,11 @@ jobs:
https://oauth2:${{ secrets.DISTRIBUTION }}@gitea.hexdive.com/New_REP_SYSTEM/ERP_Distribution.git \
.
- name: Build Docker image
run: docker build --progress=plain --no-cache -t erpdistributionfe:latest ./distribution_fe
run: |
docker build --progress=plain --no-cache \
--build-arg NEXT_PUBLIC_API_URL=https://distribution.hexdive.com/api \
-t erpdistributionfe:latest \
./distribution_fe
- name: Stop & remove existing container
run: |
docker stop erpdistributionfe 2>/dev/null || true