diff --git a/SKILL.md b/SKILL.md index 358fb12..2601645 100644 --- a/SKILL.md +++ b/SKILL.md @@ -323,6 +323,48 @@ docker compose -f /docker-compose.yml logs -f docker compose -f /docker-compose.yml down ``` +## Deploying Updates from Merged PRs + +After merging PRs that update image versions (e.g., Renovate bot PRs), deploy the changes to the target host. To review and merge Renovate PRs, use the gitea skill's PR management functions (`gitea_list_renovate_prs`, `gitea_merge_pr`). + +### Pull and Redeploy a Stack + +```bash +# On the target host, pull latest config and redeploy +ssh bill@ "cd /docker/config/ && git pull origin main" + +# Pull new images and restart +ssh bill@ "cd /docker/config/ && \ + docker compose pull && \ + docker compose up -d" + +# For stacks with host-specific overrides: +ssh bill@ "cd /docker/config/ && \ + docker compose -f docker-compose.yml \ + -f environments//docker-compose.override..yml \ + pull && \ + docker compose -f docker-compose.yml \ + -f environments//docker-compose.override..yml \ + up -d" +``` + +### Verify Deployment + +```bash +# Check container is running with new image +ssh bill@ "docker ps --filter name= --format '{{.Image}} {{.Status}}'" + +# Check logs for startup errors +ssh bill@ "docker logs --tail 20 " +``` + +### Host Reference + +| Host | SSH | Stack Path | +|------|-----|------------| +| inkling | `bill@inkling` | `/docker/config//` | +| shellington | `bill@shellington` | `/docker/config//` | + ## Creating a New Project When creating a new Docker Compose project: