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

This commit is contained in:
2025-10-23 13:01:17 +03:00
parent ce19adb1a0
commit 614cbe8b04

View File

@@ -15,9 +15,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Deploy over SSH - name: Deploy over SSH
uses: appleboy/ssh-action@v1.0.3 uses: appleboy/ssh-action@v1.0.3
with: with:
@@ -45,22 +42,22 @@ jobs:
FRONTEND_CHANGED=false FRONTEND_CHANGED=false
# Check if backend folder changed # Check if backend folder changed
if echo "$CHANGED_FILES" | grep -q "^sge-backend/"; then if echo "$CHANGED_FILES" | grep -q "^sgeUpdated/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 "^sge-frontend/"; then if echo "$CHANGED_FILES" | grep -q "^sgeUpdated/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 sge-backend # cd sgeUpdated/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 ../.. # back to /home/ubuntu/Bgreen # cd ../..
# 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
@@ -70,11 +67,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 sge-frontend cd sgeUpdated/sge-frontend
echo "Running npm build..." echo "Running npm build..."
# npm install # npm install
# npm run build # npm run build
cd ../.. # back to /home/ubuntu/Bgreen cd ../..
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