Update .gitea/workflows/deploy.yaml
Local Build and Deploy / deploy (push) Failing after 1s

This commit is contained in:
remco committed 2026-07-12 11:25:00 +02:00
1 parent d6731547f6
commit 9e05ba573d
1 file changed
+8 -8
+8 -8
View File
@@ -7,8 +7,8 @@ on:
jobs: jobs:
deploy: deploy:
# Veranderd naar self-hosted omdat de runner op je eigen VPS draait # Target your specific local runner using its precise labels
runs-on: self-hosted runs-on: [ubuntu-latest, ubuntu-22.04, shell]
steps: steps:
- name: Run Deploy Scripts Locally - name: Run Deploy Scripts Locally
@@ -16,23 +16,23 @@ jobs:
set -e set -e
echo "--- EPIC WEB CONTROL: Starting Auto-Cleanup & Deploy ---" echo "--- EPIC WEB CONTROL: Starting Auto-Cleanup & Deploy ---"
# 1. Ruim "dode" containers op # 1. Clean up "dead" containers
docker container prune -f || true docker container prune -f || true
# 2. Navigeer naar de map van je website # 2. Navigate to your website directory
cd /var/www/atom-nexst/ cd /var/www/atom-nexst/
# 3. Code ophalen via de lokale gebruiker (www-data) om SSH-rechten te behouden # 3. Fetch and update code using the local web user to maintain SSH permissions
sudo -u www-data git fetch origin --prune sudo -u www-data git fetch origin --prune
sudo -u www-data git reset --hard origin/main sudo -u www-data git reset --hard origin/main
# 4. Applicatie bouwen en bijwerken # 4. Install dependencies, run migrations, and build the application
/usr/local/bin/pnpm install --frozen-lockfile /usr/local/bin/pnpm install --frozen-lockfile
/usr/local/bin/pnpm db:migrate /usr/local/bin/pnpm db:migrate
/usr/local/bin/pnpm prisma generate /usr/local/bin/pnpm prisma generate
/usr/local/bin/pnpm build /usr/local/bin/pnpm build
# 5. Herstart de service # 5. Restart the application service
sudo systemctl restart atom-nexst.service sudo systemctl restart atom-nexst.service
echo "--- Deployment succesvol voltooid ---" echo "--- Deployment successfully completed ---"