fix(ci): git reset --hard for staging deploy; fix rollback (BIT-22325) #23

Merged
spark merged 1 commits from task/BIT-21924-staging-smoke-seed into main 2026-05-14 19:38:43 +01:00
1 Commits
Author SHA1 Message Date
Xika f9f5c1e2b8 fix(ci): use git reset --hard for staging deploy; fix rollback to avoid pushing reverts (BIT-22325)
ai-news-writer-ci / test (pull_request) Successful in 33s
Staging CT had diverged local commits from a previous rollback that pushed a
revert commit to the remote. git pull --ff-only was failing with
"Not possible to fast-forward". Replace with git reset --hard origin/<branch>
so staging always matches remote state regardless of local history.

Rollback now uses git reset --hard HEAD@{1} locally instead of reverting and
pushing to origin — staging rollback has no business touching the remote repo.

Paperclip-Issue: BIT-22325
Paperclip-Agent: tiago-neves
2026-05-14 18:34:25 +00:00