From 75c2f7ff195cc2620d8986cf67a3961bee63766e Mon Sep 17 00:00:00 2001 From: Abdulbari Date: Sat, 30 Aug 2025 01:09:38 +0300 Subject: [PATCH] Update sgeupdated pipeline v10 new code updated changes in fornt-end and back-end structure --- .gitea/workflows/sgeupdated.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/sgeupdated.yml b/.gitea/workflows/sgeupdated.yml index 8390fc4..07c3dd8 100644 --- a/.gitea/workflows/sgeupdated.yml +++ b/.gitea/workflows/sgeupdated.yml @@ -31,26 +31,27 @@ jobs: cd /home/ubuntu/sgeUpdated git pull origin main - # --- Backend --- + # --- Backend --- if echo "${CHANGED_FILES}" | grep -q "sge-backend"; then echo "Backend changes detected..." cd sge-backend mvn clean install + docker build --no-cache -t bgreen-backend . cd .. - docker compose build --no-cache backend docker compose up -d --force-recreate backend fi + # --- Frontend --- if echo "${CHANGED_FILES}" | grep -q "sge-frontend"; then echo "Frontend changes detected..." cd sge-frontend - if echo "${CHANGED_FILES}" | grep -q "sgeUpdated-frontend/package.json"; then + if echo "${CHANGED_FILES}" | grep -q "sge-frontend/package.json"; then echo "package.json changed → installing dependencies" npm install fi npm run build + docker build --no-cache -t bgreen-frontend . cd .. - docker compose build --no-cache frontend docker compose up -d --force-recreate frontend fi