From be263b1398e34cb5eb849aab2187e811a2848b6e Mon Sep 17 00:00:00 2001 From: giles Date: Mon, 23 Feb 2026 23:30:13 +0000 Subject: [PATCH] Deploy on any branch push, not just main Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a0a0ed3..daae89c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,7 +2,6 @@ name: Build and Deploy on: push: - branches: [main] env: REGISTRY: registry.rose-ash.com:5000 @@ -33,9 +32,11 @@ jobs: DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} run: | ssh "root@$DEPLOY_HOST" " + BRANCH="${GITHUB_REF##refs/heads/}" cd /root/art-dag/celery - git fetch origin main - git reset --hard origin/main + git fetch origin "$BRANCH" + git checkout "$BRANCH" + git reset --hard "origin/$BRANCH" " - name: Build and push image