forked from Abdulbari/sgeUpdated
Update sgeupdated pipeline v6
Some mistakes in directory
This commit is contained in:
@@ -28,11 +28,11 @@ jobs:
|
||||
username: ${{ secrets.SERVER_USER }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
script: |
|
||||
cd /path/to/your/project
|
||||
cd /home/ubuntu/sgeUpdated
|
||||
git pull origin main
|
||||
|
||||
# --- Backend ---
|
||||
if echo "${CHANGED_FILES}" | grep -q "sgeUpdated-backend"; then
|
||||
if echo "${CHANGED_FILES}" | grep -q "sge-backend"; then
|
||||
echo "Backend changes detected..."
|
||||
cd sgeUpdated-backend
|
||||
mvn clean install
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
fi
|
||||
|
||||
# --- Frontend ---
|
||||
if echo "${CHANGED_FILES}" | grep -q "sgeUpdated-frontend"; then
|
||||
if echo "${CHANGED_FILES}" | grep -q "sge-frontend"; then
|
||||
echo "Frontend changes detected..."
|
||||
cd sgeUpdated-frontend
|
||||
if echo "${CHANGED_FILES}" | grep -q "sgeUpdated-frontend/package.json"; then
|
||||
|
||||
Reference in New Issue
Block a user