Complete DISCTL-WP-0002-T01: Forgejo off-Gitea mirror
Create private coulomb/disaster-control on forgejo.coulomb.social, add mirror sync docs and tools/sync-mirror.sh, update registers and README. Mark T01 done.
This commit is contained in:
parent
c655b77690
commit
e7aa485c9f
8 changed files with 95 additions and 23 deletions
16
tools/sync-mirror.sh
Executable file
16
tools/sync-mirror.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
# Push current branch to the off-Gitea Forgejo mirror (R10).
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "${ROOT}"
|
||||
|
||||
if ! git remote get-url mirror &>/dev/null; then
|
||||
echo "mirror remote missing — run: git remote add mirror forgejo-remote:coulomb/disaster-control.git" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BRANCH="${1:-$(git branch --show-current)}"
|
||||
echo "==> Pushing ${BRANCH} to mirror (forgejo-remote:coulomb/disaster-control.git)"
|
||||
git push mirror "${BRANCH}" --tags
|
||||
echo "==> Mirror sync complete"
|
||||
Loading…
Add table
Add a link
Reference in a new issue