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) <noreply@anthropic.com>
This commit is contained in:
parent
2c47f2a705
commit
ef130b4b11
1 changed files with 19 additions and 0 deletions
19
.claude/commands/deploy-status.md
Normal file
19
.claude/commands/deploy-status.md
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue