From 64942c7b329b4746b164dda42bf0f31dd2db6c78 Mon Sep 17 00:00:00 2001 From: unit0 Date: Tue, 17 Mar 2026 10:46:27 -0400 Subject: [PATCH] ci: simplify deploy workflow, use native git pull on host runner Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/deploy.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 46417b1..c83b740 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -9,11 +9,12 @@ jobs: deploy: runs-on: host steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Deploy container + - name: Pull latest code + run: | + cd /opt/redunits/www + git pull origin main + + - name: Rebuild and restart container run: | - rsync -a --delete ${{ gitea.workspace }}/ /opt/redunits/www/ cd /opt/redunits/www docker compose up -d --build