From ef130b4b113d62579c162ff334f404f9aa84e22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Wed, 25 Mar 2026 03:25:18 +0100 Subject: [PATCH] Add /deploy-status command Shows deployed container versions, latest CD run SHA, and health check for both apps. Co-Authored-By: Claude Opus 4.6 (1M context) --- .claude/commands/deploy-status.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .claude/commands/deploy-status.md diff --git a/.claude/commands/deploy-status.md b/.claude/commands/deploy-status.md new file mode 100644 index 0000000..47e5bc1 --- /dev/null +++ b/.claude/commands/deploy-status.md @@ -0,0 +1,19 @@ +Check the currently deployed version on production. + +Run this SSH command to get the image digests and match them to git SHAs: + +```bash +ssh -i ~/.ssh/trails-cool-deploy root@91.99.14.111 "docker compose -f /opt/trails-cool/docker-compose.yml images" 2>&1 +``` + +Then compare with the latest CD run: + +```bash +gh run list --workflow cd.yml --limit 1 --json headSha,conclusion,status -q '.[0]' +``` + +Show: +- Which images are running (journal, planner, brouter, postgres, caddy) +- The git SHA they were built from (matches the image tag) +- Whether the latest CD run matches what's deployed +- Quick health check: curl both https://trails.cool and https://planner.trails.cool