Update .gitea/workflows/deploy.yaml
Remote Build and Deploy / deploy (push) Has been cancelled

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