Deploy: build host pulls Gitea by its tailnet name (pi5-16), resetting old LAN-address remotes
/ crosscheck (push) Successful in 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz
This commit is contained in:
2026-10-14 08:43:40 +09:00
parent f748ce51d8
commit 2c1c17997d
+3 -1
View File
@@ -19,7 +19,9 @@ BIN="$(mktemp -d)/svc-gw"
ssh "$BUILD_HOST" 'set -e ssh "$BUILD_HOST" 'set -e
mkdir -p ~/dev/yukart && cd ~/dev/yukart mkdir -p ~/dev/yukart && cd ~/dev/yukart
for r in svc-gw contracts; do for r in svc-gw contracts; do
[ -d $r ] || git clone -q http://192.168.2.199:3005/yukart/$r.git # Gitea by its tailnet name, so a deploy works away from the home LAN too.
[ -d $r ] || git clone -q http://pi5-16:3005/yukart/$r.git
git -C $r remote set-url origin http://pi5-16:3005/yukart/$r.git
git -C $r pull -q --ff-only git -C $r pull -q --ff-only
done done
cd svc-gw && ~/.cargo/bin/cargo build --release 2>&1 | tail -1 cd svc-gw && ~/.cargo/bin/cargo build --release 2>&1 | tail -1