diff --git a/.gitea/workflows/sgeupdated.yml b/.gitea/workflows/sgeupdated.yml index 422385e..d630adb 100644 --- a/.gitea/workflows/sgeupdated.yml +++ b/.gitea/workflows/sgeupdated.yml @@ -1,4 +1,3 @@ -# .gitea/workflows/sgeupdated.yml name: sgeUpdated CI/CD on: @@ -56,30 +55,30 @@ jobs: if [ "$BACKEND_CHANGED" = true ]; then echo "⚡ Backend changes detected." cd sgeUpdated/sge-backend - echo "Would run Maven build here..." - # /opt/apache-maven-3.9.11/bin/mvn clean install -DskipTests + echo "Running Maven build..." + /opt/apache-maven-3.9.11/bin/mvn clean install -DskipTests cd ../.. - echo "Would rebuild backend Docker container..." - # docker compose up -d --build bgreen-backend + echo "Rebuilding backend Docker container..." + docker compose up -d --build bgreen-backend else echo "✅ No backend changes." fi # Frontend section if [ "$FRONTEND_CHANGED" = true ]; then - echo "⚡ Frontend changes detected.." + echo "⚡ Frontend changes detected." cd sgeUpdated/sge-frontend - echo "Would run npm build here..." - # npm install - # npm run build + echo "Running npm build..." + npm install + npm run build cd ../.. - echo "Would rebuild frontend Docker container..." - # docker compose up -d --build bgreen-frontend + echo "Rebuilding frontend Docker container..." + docker compose up -d --build bgreen-frontend else echo "✅ No frontend changes." fi - # If no changes at all, just restart containers (commented for now) + # If no changes at all, just restart containers (commented out for now) if [ "$BACKEND_CHANGED" = false ] && [ "$FRONTEND_CHANGED" = false ]; then echo "♻️ No source changes detected. (Would restart containers here...)" # docker compose up -d