Update sgeupdated pipeline v23++
Some checks failed
sgeUpdated CI/CD / deploy (push) Failing after 15s

This commit is contained in:
2025-10-23 12:56:52 +03:00
parent 5471db463f
commit ce19adb1a0

View File

@@ -35,7 +35,6 @@ jobs:
# Detect which files changed in the last commit # Detect which files changed in the last commit
CHANGED_FILES=$(git diff --name-only HEAD HEAD~1) CHANGED_FILES=$(git diff --name-only HEAD HEAD~1)
echo "🪶 Changed files:" echo "🪶 Changed files:"
echo "$CHANGED_FILES" echo "$CHANGED_FILES"
@@ -46,22 +45,22 @@ jobs:
FRONTEND_CHANGED=false FRONTEND_CHANGED=false
# Check if backend folder changed # Check if backend folder changed
if echo "$CHANGED_FILES" | grep -q "^sgeUpdated/sge-backend/"; then if echo "$CHANGED_FILES" | grep -q "^sge-backend/"; then
BACKEND_CHANGED=true BACKEND_CHANGED=true
fi fi
# Check if frontend folder changed # Check if frontend folder changed
if echo "$CHANGED_FILES" | grep -q "^sgeUpdated/sge-frontend/"; then if echo "$CHANGED_FILES" | grep -q "^sge-frontend/"; then
FRONTEND_CHANGED=true FRONTEND_CHANGED=true
fi fi
# Backend section (currently commented out) # Backend section (currently commented out)
# if [ "$BACKEND_CHANGED" = true ]; then # if [ "$BACKEND_CHANGED" = true ]; then
# echo "⚡ Backend changes detected." # echo "⚡ Backend changes detected."
# cd sgeUpdated/sge-backend # cd sge-backend
# echo "Running Maven build..." # echo "Running Maven build..."
# /opt/apache-maven-3.9.11/bin/mvn clean install -DskipTests # /opt/apache-maven-3.9.11/bin/mvn clean install -DskipTests
# cd ../.. # cd ../.. # back to /home/ubuntu/Bgreen
# echo "Rebuilding backend Docker container..." # echo "Rebuilding backend Docker container..."
# docker compose up -d --build bgreen-backend # docker compose up -d --build bgreen-backend
# else # else
@@ -71,11 +70,11 @@ jobs:
# Frontend section # Frontend section
if [ "$FRONTEND_CHANGED" = true ]; then if [ "$FRONTEND_CHANGED" = true ]; then
echo "⚡ Frontend changes detected." echo "⚡ Frontend changes detected."
cd sgeUpdated/sge-frontend cd sge-frontend
echo "Running npm build..." echo "Running npm build..."
# npm install # npm install
# npm run build # npm run build
cd ../.. cd ../.. # back to /home/ubuntu/Bgreen
echo "Rebuilding frontend Docker container..." echo "Rebuilding frontend Docker container..."
docker compose up -d --build bgreen-frontend docker compose up -d --build bgreen-frontend
else else