chore(forge): update git origin to ct-forge with orgname cocotte and refresh examples/comments
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
6b22256e29
commit
1ff86eff3c
3 changed files with 7 additions and 10 deletions
|
|
@ -42,18 +42,15 @@ _pat() { cat ~/.vault/do_pat_cocotte 2>/dev/null; }
|
|||
|
||||
# The authenticated git remote the workers (and golden image) clone prospector
|
||||
# from. Cloud boxes have no laptop credential helper, so we embed the quinn forge
|
||||
# password. Uses the *origin's* host + org (prospector lives in the `applications`
|
||||
# org; cocotte_forge_creds' GIT_ORG=platform is the monorepo default, not ours).
|
||||
# 134.199.243.61 and 165.227.191.38 are the same Forgejo, so either host works.
|
||||
# password. Uses the *origin's* path (standardized under cocotte/ org on ct-forge
|
||||
# for @ct repos; GIT_ORG=cocotte in cocotte_forge_creds).
|
||||
# Override with CT_FLEET_GIT_REMOTE to pass a pre-authed URL explicitly.
|
||||
_git_remote() {
|
||||
if [ -n "${CT_FLEET_GIT_REMOTE:-}" ]; then printf '%s' "$CT_FLEET_GIT_REMOTE"; return; fi
|
||||
local url repo_path pass
|
||||
# Keep the org/repo path from origin (prospector lives in the `applications` org),
|
||||
# but point the fleet at ct-forge (cocotte_forge_creds.FORGE_IP) — its canonical
|
||||
# home — with the quinn admin password embedded for unattended clone.
|
||||
url="$(git -C "$(_repo_root)" remote get-url origin)" # http://quinn@HOST:3000/applications/prospector.git
|
||||
repo_path="${url#*://*/}" # applications/prospector.git
|
||||
# Keep the org/repo path from origin (now cocotte/ for @ct repos on ct-forge).
|
||||
url="$(git -C "$(_repo_root)" remote get-url origin)" # http://quinn@134.199.243.61:3000/cocotte/prospector.git
|
||||
repo_path="${url#*://*/}" # cocotte/prospector.git
|
||||
# shellcheck disable=SC1090
|
||||
. ~/.vault/cocotte_forge_creds 2>/dev/null || { printf '%s' "$url"; return; }
|
||||
pass="$(cat "${ADMIN_PASS_FILE/#\~/$HOME}" 2>/dev/null)"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
// Build once:
|
||||
// export DIGITALOCEAN_TOKEN="$(cat ~/.vault/do_pat_cocotte)"
|
||||
// packer init infra/packer/golden-image.pkr.hcl
|
||||
// packer build -var git_remote=http://quinn@165.227.191.38:3000/applications/prospector.git \
|
||||
// packer build -var git_remote=http://quinn@134.199.243.61:3000/cocotte/prospector.git \
|
||||
// -var npm_token="$NPM_TOKEN" \
|
||||
// infra/packer/golden-image.pkr.hcl
|
||||
//
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# The token is best passed via env instead: export TF_VAR_do_token="$(cat ~/.vault/do_pat_cocotte)"
|
||||
|
||||
# Required: ct-forge origin the golden image was built from.
|
||||
git_remote = "http://quinn@165.227.191.38:3000/applications/prospector.git"
|
||||
git_remote = "http://quinn@134.199.243.61:3000/cocotte/prospector.git"
|
||||
|
||||
# Optional overrides (defaults shown).
|
||||
# region = "nyc3" # NYC (also: nyc1, sfo3, ams3, fra1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue