fix: deploy workflow clones wrong repo and runs swapoff #609
Reference in New Issue
Block a user
Delete Branch "fix/606-607-wiki-api-bugs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes two critical deploy pipeline issues that prevented new code from being deployed:
1.
swapoff -acrashes MySQLThe deploy script ran
sudo swapoff -a && sudo swapon -ato "clear swap" before building. This forced 1.5GB+ of swap contents into already-full RAM, triggering OOM kills that took down MySQL.2. Wrong source repo
The deploy cloned
MokoGitea(upstream fork) instead ofMokoGitea-APP(our customized repo). The built image had different code and a different git describe tag (stable+167vs our version), which caused s6 crash loops.Changes
.mokogitea/workflows/deploy-mokogitea.yml: Remove swapoff, fix clone URL, addgit remote set-urlfor existing server clonesCHANGELOG.md: Updated with all fixes from this session