This commit is contained in:
1 parent
8d37ae9ae0
commit
675fa4ae2e
1 file changed
+17
-22
@@ -6,26 +6,21 @@ on:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: shell
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Execute Remote SSH Commands to Build and Deploy
|
||||
uses: appleboy/[email protected]
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
script: |
|
||||
echo "--- Starting Deployment Pipeline ---"
|
||||
|
||||
# 1. Navigeer naar de juiste map op de VPS
|
||||
cd /var/www/atom-next/
|
||||
|
||||
# 2. Synchroniseer de lokale code met Gitea
|
||||
git fetch --all
|
||||
git reset --hard origin/main
|
||||
|
||||
echo "--- Deployment Completed Successfully ---"
|
||||
- name: Execute Build and Deploy Commands
|
||||
run: |
|
||||
echo "--- Starting EPIC WEB CONTROL Deployment ---"
|
||||
|
||||
# 1. Navigeer direct naar de juiste map op de VPS
|
||||
cd /var/www/atom-next/
|
||||
|
||||
# 2. Synchroniseer de code direct via Git
|
||||
git fetch --all
|
||||
git reset --hard origin/main
|
||||
|
||||
# 3. Voer de database migraties uit
|
||||
echo "--- Running Database Migrations ---"
|
||||
pnpm db:migrate
|
||||
|
||||
echo "--- Deployment Completed Successfully ---"
|
||||
Reference in new issue
Block a user