feat(config): support multiple Gitea profiles via GITEA_PROFILE env var

未設時讀 config.env(行為不變);設了讀 config.<profile>.env。
.gitignore 新增 config.*.env 但保留 config.example.env。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
timmy
2026-04-21 16:18:16 +08:00
parent e333f7b8ab
commit f28f20ba56
6 changed files with 41 additions and 3 deletions

View File

@@ -1,5 +1,10 @@
# 複製此檔為 config.env 後填入實際值
# cp config.example.env config.env
#
# 多組 Gitea 站/帳號:另存為 config.<profile>.env
# 執行腳本時帶 GITEA_PROFILE=<profile> 切換。例如:
# cp config.example.env config.work.env # 編輯後
# GITEA_PROFILE=work bash scripts/list.sh
# Gitea 站台網址(不要結尾 /
GITEA_URL=http://your-gitea.example.com:3000