From 97d19d83ab8b7d1e3aacaec2f1eef8d785d3a356 Mon Sep 17 00:00:00 2001 From: ImanThiyanga Date: Sat, 19 Sep 2026 01:01:30 +0530 Subject: [PATCH] fixes on ci-cd --- .gitea/workflows/ci-cd.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index c4ebc55..a5809dc 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -63,12 +63,19 @@ jobs: frontend-build-and-deploy: name: Build & Deploy ERP Core Frontend runs-on: linux - if: github.event.pull_request.merged == true steps: + - name: Checkout code + run: | + rm -rf /tmp/erpcore-frontend-src + git clone \ + --depth 1 \ + --branch production \ + https://oauth2:${{ secrets.ERPCORE }}@gitea.hexdive.com/New_REP_SYSTEM/ERP-core.git \ + /tmp/erpcore-frontend-src + - name: Build frontend Docker image - working-directory: .gitea/workflows - run: docker build -t erpcore-frontend:latest ../../Frontend/erp-system + run: docker build -t erpcore-frontend:latest /tmp/erpcore-frontend-src/Frontend/erp-system - name: Stop & remove existing frontend container run: |