From 9e05ba573db1caec4222ca8e52f020673b0dc193 Mon Sep 17 00:00:00 2001 From: Remco <1+remco@noreply.gitlabi@epicnabbo.nl> Date: Sun, 12 Jul 2026 11:25:00 +0200 Subject: [PATCH] Update .gitea/workflows/deploy.yaml --- .gitea/workflows/deploy.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 67544e37..8f625259 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -7,8 +7,8 @@ on: jobs: deploy: - # Veranderd naar self-hosted omdat de runner op je eigen VPS draait - runs-on: self-hosted + # Target your specific local runner using its precise labels + runs-on: [ubuntu-latest, ubuntu-22.04, shell] steps: - name: Run Deploy Scripts Locally @@ -16,23 +16,23 @@ jobs: set -e echo "--- EPIC WEB CONTROL: Starting Auto-Cleanup & Deploy ---" - # 1. Ruim "dode" containers op + # 1. Clean up "dead" containers docker container prune -f || true - # 2. Navigeer naar de map van je website + # 2. Navigate to your website directory 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 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 db:migrate /usr/local/bin/pnpm prisma generate /usr/local/bin/pnpm build - # 5. Herstart de service + # 5. Restart the application service sudo systemctl restart atom-nexst.service - echo "--- Deployment succesvol voltooid ---" \ No newline at end of file + echo "--- Deployment successfully completed ---" \ No newline at end of file