Commit e3abea1
authored
ci(release): add workflow_dispatch with tag input (#954)
## Summary
- Adds a `workflow_dispatch` trigger to `release.yml` with a required
`tag` input so maintainers can manually (re)build release artifacts
for any tag when the `release: published` run failed to upload assets.
- Auto-detects whether to advance the `:latest`, `:<major>`, and
`:<major>.<minor>` Docker tags: a pre-goreleaser step asks GitHub for
the current Latest release and sets `MOVE_TAGS=true` iff the ref being
built equals it. `.goreleaser.yaml` templates each moving tag against
`.Env.MOVE_TAGS` and collapses to `{{ .Version }}` (which goreleaser
dedupes) when false.
v2.5.0 and v2.6.0 currently have no artifacts -- both `release.yml`
runs failed because `useblacksmith/setup-docker-builder` dropped an
untracked `buildkitd.toml` into the repo root and goreleaser aborted on
the dirty state. With this trigger, we can rebuild those tags (or any
future misfire) without recutting the release and without corrupting
the floating Docker tags, no manual flag required.1 parent d14769a commit e3abea1
2 files changed
Lines changed: 36 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
36 | | - | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
56 | 82 | | |
57 | 83 | | |
58 | 84 | | |
59 | 85 | | |
60 | 86 | | |
61 | 87 | | |
| 88 | + | |
62 | 89 | | |
63 | 90 | | |
64 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments