Update sgeupdated pipeline v10
All checks were successful
sgeUpdated Smoke Test / smoke-test (push) Successful in 6s
sgeUpdated CI/CD / deploy (push) Successful in 23s

new code updated changes in fornt-end and back-end structure
This commit is contained in:
2025-08-30 01:09:38 +03:00
parent 55577469de
commit 75c2f7ff19

View File

@@ -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