Commit Graph
3 Commits
Author SHA1 Message Date
Fredrik JohanssonandClaude Sonnet 5 0af576d8a8 deploy.sh: submit a Trace deployment receipt after compose up
Trace keeps build and deployment receipts separate on purpose, but
nothing was ever wired up to emit the second one from a plain
docker-compose deploy host — so Trace kept reporting the last commit
someone had told it about, not what's actually running. Opt-in per
project via a .trace-meta marker pointing at a site-meta-shaped health
endpoint; missing marker, missing TRACE_* config, or Trace being
unreachable are all non-fatal, matching the existing keep-pull
best-effort style.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 03:24:59 +02:00
Fredrik JohanssonandClaude Sonnet 5 74122b25cd deploy.sh: resolve vault key via .keep-vault marker, never fail on keep
Was previously hardcoded to vault key "<project-dir-name>/<env>" with
no marker-file lookup at all -- a real gap versus the design already
written out in PROPOSAL-announce-and-agent.md §4, which this script
never actually caught up to. Repo names, deploy directory names, and
vault keys are three independent strings in practice (a repo can be
named one thing, its deploy directory another, entirely by history/
accident) -- exactly the situation the npm-statuspage rollout hit.

Resolution order: $dir/.keep-vault if present, else fall back to
"<project>/<env>". `keep pull` is now fully best-effort -- missing
vault, missing grant, or keep not installed at all is never fatal,
matches the proposal's explicit requirement that a keep failure means
"doesn't apply to this project (yet)," never "stop the deploy."
Existing/hand-copied .env is left alone if the pull doesn't happen.

Verified with stub keep/docker commands on PATH (no real server
needed for this): a marker-file project with a deliberately mismatched
vault key resolves and pulls correctly; a project with neither a
marker nor a matching vault falls through cleanly to docker compose up
-d without ever touching .env or failing the deploy.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-15 16:12:57 +02:00
Fredrik JohanssonandClaude Sonnet 5 f6a1ac13f2 Add keep overview command and a docker-compose deploy wrapper
Docker / build-and-push (push) Successful in 1m57s
keep overview gives an admin a cross-vault view of every recipient and
grant in one screen, instead of walking vaults one at a time via
/vaults/:key/recipients. scripts/deploy.sh pulls a project's env from
keep before running docker compose up, for VPS deploys of several
docker-compose projects.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-12 20:16:29 +02:00