forked from BLC/sgeUpdated
Update sgeupdated pipeline v22-+
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 6s
All checks were successful
sgeUpdated CI/CD / deploy (push) Successful in 6s
This commit is contained in:
@@ -7,12 +7,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
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
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Gitea automatically checks out your code, so we don't need 'actions/checkout'
|
|
||||||
|
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
run: |
|
run: |
|
||||||
@@ -23,7 +21,6 @@ jobs:
|
|||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.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
|
# This is a critical step for automation
|
||||||
ssh-keyscan ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
|
ssh-keyscan ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
@@ -86,8 +83,8 @@ jobs:
|
|||||||
echo "⚡ Frontend changes detected. Rebuilding frontend..."
|
echo "⚡ Frontend changes detected. Rebuilding frontend..."
|
||||||
cd sge-frontend
|
cd sge-frontend
|
||||||
echo "Running npm install and build..."
|
echo "Running npm install and build..."
|
||||||
npm install
|
#npm install
|
||||||
npm run build
|
#npm run build
|
||||||
cd ..
|
cd ..
|
||||||
echo "Rebuilding frontend Docker container..."
|
echo "Rebuilding frontend Docker container..."
|
||||||
docker compose up -d --build bgreen-frontend
|
docker compose up -d --build bgreen-frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user