fix(ci): sync the server checkout after deployment
All checks were successful
Test and deploy / Verify production build (push) Successful in 4m54s

Fast-forward the deployment checkout to the exact healthy image commit while refusing tracked changes, divergence, or an unexpected branch. Ignore release metadata stored beside the checkout.
This commit is contained in:
2026-09-15 15:22:09 +03:30
parent dcce6d219d
commit 990a76a710
3 changed files with 48 additions and 1 deletions

View File

@@ -9,6 +9,9 @@ Release manifests are stored in `<DEPLOY_PATH>/releases/<commit-sha>`. Each
manifest records the immutable image tag and Gitea run number. The `current`
symlink is changed only after the new container is healthy. If startup fails,
the deployment script restarts the previous image without rebuilding it.
After health succeeds, the Git checkout at `<DEPLOY_PATH>` is fast-forwarded to
the exact deployed commit. Deployment refuses to overwrite tracked server-side
changes or a checkout that has diverged from `origin/main`.
## Gitea Actions setup