# Deploy the latest MCP worker image. # Copy to /etc/ops-agent/flows/update_mcp_worker.yml on the host. # # Steps: # 1. Show current git status of scrum4me-docker (informational) # 2. Fetch remote refs for scrum4me-docker # 3. Fast-forward pull scrum4me-docker (aborts if working tree is dirty) # 4. Fast-forward pull scrum4me-mcp — sync van de lokale repo. De image # cloned MCP zelf van GitHub, dus dit is alleen lokale referentie; # on_failure: continue zodat een dirty mcp-tree de deploy niet blokkeert. # 5. Rebuild the worker image MET cache-bust. Een gewone build hergebruikt # de scrum4me-mcp clone-laag (MCP_GIT_REF blijft 'main'), dus nieuwe # MCP-commits worden gemist. docker_compose_build_worker_fresh forceert # een verse clone via MCP_CACHE_BUST. # 6. Recreate the container (force-recreate picks up the new image) # 7. Wait for worker pre-flight to pass (checks /var/log/agent/current) name: Update MCP Worker description: Pull latest code, rebuild the worker image with a fresh scrum4me-mcp clone, and recreate the worker container steps: - command_key: git_status args: ["/srv/scrum4me/repos/scrum4me-docker"] on_failure: continue - command_key: git_fetch args: ["/srv/scrum4me/repos/scrum4me-docker"] on_failure: abort - command_key: git_pull args: ["/srv/scrum4me/repos/scrum4me-docker"] on_failure: abort - command_key: git_pull args: ["/srv/scrum4me/repos/scrum4me-mcp"] on_failure: continue - command_key: docker_compose_build_worker_fresh on_failure: abort - command_key: docker_compose_up_recreate args: ["worker-idea"] on_failure: abort - command_key: wait_for_health_worker on_failure: continue