Commit c03831f
ci: drive stable Docker/deploy builds off release publish (#4484)
## What
Switch the **Stable Docker images** and **Update Deployment tags**
workflows from the `push: tags` trigger to `release: published`.
## Why
Tagging and publishing the GitHub Release were decoupled. Tags were
pushed independently, so the release-drafter draft could sit unpublished
even though Docker images were already built:
- `v0.36.28` sat as a draft for 4 days (images built 06-15, published
06-19).
- `v0.36.29` was never published — images built 06-19, draft only
published manually on 06-23.
Triggering off `release: published` makes **publishing the draft the
single source of truth**: GitHub natively creates the `vX.Y.Z` tag at
the release's target commit, which fires both workflows.
## Notes
- `stable-docker.yml` needs no other change — `github.ref_name` resolves
to the tag name on both event types, so `SHA_SHORT: stable-${{
github.ref_name }}` still yields `stable-vX.Y.Z` and `actions/checkout`
checks out the tag automatically.
- `update-docker-compose-stable.yaml` keeps `workflow_dispatch`; its
`releases/latest` lookup returns the just-published release.
- **Behavior change:** bare `git push origin vX.Y.Z` no longer triggers
builds — you must publish a release.
- **GITHUB_TOKEN caveat:** `release: published` fires on human publishes
(the current flow). If release-drafter is later set to auto-publish via
the default `GITHUB_TOKEN`, that bot event would not trigger these
downstream workflows (GitHub's recursion guard).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent cd593d9 commit c03831f
2 files changed
Lines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 26 | + | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| |||
0 commit comments