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