Update sgeupdated pipeline v12

This commit is contained in:
2025-08-30 02:57:42 +03:00
parent e9a361489e
commit f2d5182215

View File

@@ -33,20 +33,20 @@ jobs:
git pull origin main
# --- Backend ---
if echo "${CHANGED_FILES}" | grep -q "sge-backend"; then
echo "Backend changes detected..."
cd sge-backend
mvn clean install
cd ..
if echo "${CHANGED_FILES}" | grep -q "sge-backend"; then
echo "Backend changes detected..."
cd sge-backend
mvn clean install
cd ..
# Stop & remove old backend container (ignore errors if not exists)
docker stop sgeupdated-backend-1 || true
docker rm sgeupdated-backend-1 || true
# Stop & remove old backend container (ignore errors if not exists)
docker stop sgeupdated-backend-1 || true
docker rm sgeupdated-backend-1 || true
# Build Docker image and restart container
docker compose build --no-cache backend
docker compose up -d --force-recreate backend
fi
# Build Docker image and restart container
docker compose build --no-cache backend
docker compose up -d --force-recreate backend
fi
# --- Frontend ---
if echo "${CHANGED_FILES}" | grep -q "sge-frontend"; then