Update sgeupdated pipeline v22-+

This commit is contained in:
2025-10-24 18:03:14 +03:00
parent 53d5bf2e77
commit 1ae3d76781

View File

@@ -7,12 +7,10 @@ on:
jobs:
deploy:
# 'ubuntu-latest' is a common name for runners.
# Check with your Gitea admin if you have a different runner tag.
runs-on: ubuntu-latest
steps:
# Gitea automatically checks out your code, so we don't need 'actions/checkout'
- name: Setup SSH
run: |
@@ -23,7 +21,6 @@ jobs:
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
# Add your server's host key to known_hosts to avoid the 'yes/no' prompt
# This is a critical step for automation
ssh-keyscan ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
@@ -86,8 +83,8 @@ jobs:
echo "⚡ Frontend changes detected. Rebuilding frontend..."
cd sge-frontend
echo "Running npm install and build..."
npm install
npm run build
#npm install
#npm run build
cd ..
echo "Rebuilding frontend Docker container..."
docker compose up -d --build bgreen-frontend