forked from BLC/sgeUpdated
Update sgeupdated pipeline v12
This commit is contained in:
@@ -27,12 +27,11 @@ jobs:
|
|||||||
host: ${{ secrets.SERVER_HOST }}
|
host: ${{ secrets.SERVER_HOST }}
|
||||||
username: ${{ secrets.SERVER_USER }}
|
username: ${{ secrets.SERVER_USER }}
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
script: |
|
script: |
|
||||||
cd/home/ubuntu/sgeUpdated
|
cd /home/ubuntu/sgeUpdated
|
||||||
git pull origin main
|
git pull origin main
|
||||||
|
|
||||||
# --- Backend ---
|
# --- Backend ---
|
||||||
if echo "${CHANGED_FILES}" | grep -q "sge-backend"; then
|
if echo "${CHANGED_FILES}" | grep -q "sge-backend"; then
|
||||||
echo "Backend changes detected..."
|
echo "Backend changes detected..."
|
||||||
cd sge-backend
|
cd sge-backend
|
||||||
@@ -64,4 +63,3 @@ jobs:
|
|||||||
# Build Docker image and restart container
|
# Build Docker image and restart container
|
||||||
docker compose build --no-cache frontend
|
docker compose build --no-cache frontend
|
||||||
docker compose up -d --force-recreate frontend
|
docker compose up -d --force-recreate frontend
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user