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

This commit is contained in:
remco committed 2026-07-12 00:18:52 +02:00
1 parent c21ea05d39
commit b2380ce64b
1 file changed
+26 -27
+26 -27
View File
@@ -1,4 +1,4 @@
name: Local Build and Deploy
name: Remote Build and Deploy
on:
push:
branches:
@@ -6,30 +6,29 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Deploying locally on VPS
run: |
set -e
echo "--- Starting EPIC WEB CONTROL Deployment (Local) ---"
# 1. Navigeer naar de map
cd /var/www/atom-nexst/
# 2. Veilige update
git fetch origin --prune
git reset --hard origin/main
# 3. Cleanup
if [ -d "directory-name" ]; then rm -rf directory-name; fi
# 4. Dependencies, Build en Restart
/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
echo "--- Local Deployment Completed Successfully ---"
- name: Deploying via SSH to Host (Bypass Docker Container)
uses: appleboy/[email protected]
with:
host: "127.0.0.1"
username: "root"
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
set -e
echo "--- Starting EPIC WEB CONTROL Deployment (Host-side) ---"
# Nu ben je weer op de echte server, buiten de container
cd /var/www/atom-nexst/
git fetch origin --prune
git reset --hard origin/main
/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
echo "--- Deployment op Live Server voltooid ---