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

This commit is contained in:
remco committed 2026-07-12 00:09:08 +02:00
1 parent 5851e05acd
commit 5ea272d55c
1 file changed
+20 -29
+20 -29
View File
@@ -1,4 +1,4 @@
name: Remote Build and Deploy name: Local Build and Deploy
on: on:
push: push:
branches: branches:
@@ -6,39 +6,30 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: self-hosted # Gebruik 'self-hosted' omdat het op je eigen VPS draait
steps: steps:
- name: Deploying via SSH connection to VPS Host - name: Deploying locally on VPS
uses: appleboy/[email protected] run: |
with: set -e
# We omzeilen secrets hier volledig om de "leeg" foutmelding te stoppen echo "--- Starting EPIC WEB CONTROL Deployment (Local) ---"
host: "172.20.2.1"
username: "root"
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
set -e
echo "--- Starting EPIC WEB CONTROL Deployment ---"
cd /var/www/atom-nexst/ # 1. Navigeer naar de map
cd /var/www/atom-nexst/
# 1. Veilige update # 2. Veilige update
git fetch origin --prune git fetch origin --prune
git reset --hard origin/main git reset --hard origin/main
# 2. Cleanup # 3. Cleanup
if [ -d "directory-name" ]; then rm -rf directory-name; fi if [ -d "directory-name" ]; then rm -rf directory-name; fi
# 3. Dependencies # 4. Dependencies, Build en Restart
/usr/local/bin/pnpm install --frozen-lockfile /usr/local/bin/pnpm install --frozen-lockfile
/usr/local/bin/pnpm db:migrate
/usr/local/bin/pnpm prisma generate
/usr/local/bin/pnpm build
sudo systemctl restart atom-nexst.service
# 4. Database en Types echo "--- Local Deployment Completed Successfully ---"
/usr/local/bin/pnpm db:migrate
/usr/local/bin/pnpm prisma generate
# 5. Build en Restart
/usr/local/bin/pnpm build
sudo systemctl restart atom-nexst.service
echo "--- EPIC WEB CONTROL Deployment Completed Successfully ---"