Merge pull request #54 from trails-cool/add-deploy-status-command

This commit is contained in:
github-actions[bot] 2026-03-25 02:28:05 +00:00 committed by GitHub
commit 57141cdfab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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