forked from BLC/sgeUpdated
Update sgeupdated pipeline v12
All checks were successful
sgeUpdated Smoke Test / smoke-test (push) Successful in 6s
All checks were successful
sgeUpdated Smoke Test / smoke-test (push) Successful in 6s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user