forked from BLC/sgeUpdated
Update sgeupdated pipeline v10
new code updated changes in fornt-end and back-end structure
This commit is contained in:
@@ -36,21 +36,22 @@ jobs:
|
||||
echo "Backend changes detected..."
|
||||
cd sge-backend
|
||||
mvn clean install
|
||||
docker build --no-cache -t bgreen-backend .
|
||||
cd ..
|
||||
docker compose build --no-cache backend
|
||||
docker compose up -d --force-recreate backend
|
||||
fi
|
||||
|
||||
|
||||
# --- Frontend ---
|
||||
if echo "${CHANGED_FILES}" | grep -q "sge-frontend"; then
|
||||
echo "Frontend changes detected..."
|
||||
cd sge-frontend
|
||||
if echo "${CHANGED_FILES}" | grep -q "sgeUpdated-frontend/package.json"; then
|
||||
if echo "${CHANGED_FILES}" | grep -q "sge-frontend/package.json"; then
|
||||
echo "package.json changed → installing dependencies"
|
||||
npm install
|
||||
fi
|
||||
npm run build
|
||||
docker build --no-cache -t bgreen-frontend .
|
||||
cd ..
|
||||
docker compose build --no-cache frontend
|
||||
docker compose up -d --force-recreate frontend
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user