From 95b545d8b2f9b7dc00ac40988df91d49a0059c98 Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Tue, 7 Jul 2026 19:44:26 +0200 Subject: [PATCH] chore(deploy): allow a gitignored local override for deploy targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deploy.sh now sources ./.deploy.local at runtime if it exists, letting a maintainer point the script at their own hosts without committing them — the tracked defaults stay placeholders. .deploy.local and .deploy-local/ are gitignored so real hostnames/IPs never land in the repo. --- .gitignore | 6 ++++++ deploy.sh | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index afaf9401..2f898d02 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,12 @@ id_ed25519* # Generated deployment config (contains secrets) livekit.yaml +# Local deploy targets & private ops notes — REAL hosts/IPs/users for the +# maintainer's own infra. NEVER commit: this is a public repo. deploy.sh reads +# .deploy.local at runtime if present; the committed defaults stay placeholders. +/.deploy.local +/.deploy-local/ + # Raw screenshot originals — optimized WebP copies live in docs/screenshots/ demo-pictures/ diff --git a/deploy.sh b/deploy.sh index a8ef8150..69359ad8 100755 --- a/deploy.sh +++ b/deploy.sh @@ -32,6 +32,16 @@ PI_PATH="~/backspace" BETA_HOST="orbit.ddns.net" BETA_PATH="~/backspace" +# ── Local target override (gitignored) ────────────────────── +# The values above are public placeholders. A maintainer can point this script +# at real infrastructure by creating ./.deploy.local (git-ignored) that reassigns +# PI_USER / PI_LOCAL / PI_REMOTE / PI_PATH / BETA_HOST / BETA_PATH. This keeps +# real hostnames, IPs, and usernames out of the public repo. Never commit it. +if [[ -f ./.deploy.local ]]; then + # shellcheck source=/dev/null + source ./.deploy.local +fi + # ── Rsync excludes ────────────────────────────────────────── EXCLUDES=(