From f719e2cbb7fbed989d6e4d4f290560c2077e136d Mon Sep 17 00:00:00 2001 From: Remco <1+remco@noreply.gitlabi@epicnabbo.nl> Date: Sun, 12 Jul 2026 11:28:30 +0200 Subject: [PATCH] Update .gitea/workflows/deploy.yaml --- .gitea/workflows/deploy.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index cb51c42e..c67fe99d 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -21,9 +21,12 @@ jobs: # 2. Navigate to your website directory cd /var/www/atom-nexst/ - # Fix ownership to ensure www-data owns the files before Git runs + # Fix ownership to ensure www-data owns the files sudo chown -R www-data:www-data .git/ + # Force Git to read directly from the local Gitea repository directory + sudo -u www-data git remote set-url origin /docker/gitea/gitea/git/repositories/remco/epicnext-cms.git/ + # 3. Fetch and update code using the local web user sudo -u www-data git fetch origin --prune sudo -u www-data git reset --hard origin/main