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
+26 -35
+26 -35
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" # 1. Navigeer naar de map
key: ${{ secrets.SSH_PRIVATE_KEY }} cd /var/www/atom-nexst/
port: 22
script: | # 2. Veilige update
set -e git fetch origin --prune
echo "--- Starting EPIC WEB CONTROL Deployment ---" git reset --hard origin/main
cd /var/www/atom-nexst/ # 3. Cleanup
if [ -d "directory-name" ]; then rm -rf directory-name; fi
# 1. Veilige update
git fetch origin --prune # 4. Dependencies, Build en Restart
git reset --hard origin/main /usr/local/bin/pnpm install --frozen-lockfile
/usr/local/bin/pnpm db:migrate
# 2. Cleanup /usr/local/bin/pnpm prisma generate
if [ -d "directory-name" ]; then rm -rf directory-name; fi /usr/local/bin/pnpm build
sudo systemctl restart atom-nexst.service
# 3. Dependencies
/usr/local/bin/pnpm install --frozen-lockfile echo "--- Local Deployment Completed Successfully ---"
# 4. Database en Types
/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 ---"