Commit c2d6fc8
authored
feat(workflows): add mcp-server-deploy reusable workflow (#11)
Canonical deploy workflow for wyre-technology/*-mcp repositories.
Companion to mcp-server-ci.yml, finishing the per-repo workflow
factorization (CI was already shared; deploy was still 8x copy-paste,
which is how we ended up with autotask-mcp silently shipping every
release into an orphaned ACA for 3+ weeks).
What this workflow does:
- Logs into Azure via OIDC
- Deploys the caller's image to gwp-<vendor-slug> by IMMUTABLE digest
- Hard-fails if the digest input is empty or not sha256:-prefixed
- Sets IMAGE_VERSION env var on the new revision tying it back to
release version + git SHA + workflow run ID for forensics
Failure patterns this fixes for the fleet:
1. Deploying to mcpgw-prod-<vendor> instead of gwp-<vendor>. The
gateway routes vendor traffic per VENDOR_URL_<VENDOR> env, all of
which point to gwp-<vendor>. The mcpgw-prod-* ACAs are orphaned
legacy from a prior naming convention. Releases shipped to them
are silent no-ops.
2. Deploying by :latest tag. :latest is mutable and can resolve to a
stale digest through GHCR edge caches or ACA's image-pull cache,
making deploys "succeed" while actually rolling onto the prior
image (observed 2026-05-13 with autotask-mcp PRs #95 and #96).
Caller contract (release.yml):
- docker job must expose `outputs.digest:
${{ steps.<push-step>.outputs.digest }}`
- deploy job replaces its inline body with `uses:
wyre-technology/.github/.github/workflows/mcp-server-deploy.yml@<sha>`
passing vendor-slug, image-name, digest, version. Secrets propagate
via `secrets: inherit` or explicit forwarding.
Will be rolled out to autotask-mcp first as the reference call site,
then to halopsa-mcp, datto-rmm-mcp, itglue-mcp, huntress-mcp,
liongard-mcp, domotz-mcp, cipp-mcp in follow-up PRs.
See related skills:
- ci-docker-semantic-release-version-race
- mcp-gateway-troubleshooting1 parent cd81e46 commit c2d6fc8
1 file changed
Lines changed: 107 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
0 commit comments