Commit fb0a3d6
committed
Dispatch docker's release-tag.yml (not build-push.yml) after tests (ci#366)
Completes ci#365 by fixing the tag-creation gap #438 left open.
Previous shape (#438): docker-dispatch job fired `gh workflow run
build-push.yml` + build-push-windows.yml on metanorma-docker main.
build-push builds off main, which reads docker's own latest tag —
rebuilding the LAST cli version, not the newly-released one. Every
fortnight required manual `gh workflow run release-tag.yml` to
create the matching docker tag; automation did not close that loop.
This PR: docker-dispatch now fires `repository_dispatch:
[metanorma/metanorma-cli]` at metanorma-docker's release-tag.yml
(which already exposed that listener but nothing dispatched to it).
release-tag.yml parses the cli version from client_payload.ref,
updates VERSION.mak + Gemfile, creates the matching vX.Y.Z tag,
and the tag push triggers build-push + build-push-windows AT the
tag with the correct version.
After merge: next cli tag push → rake tests → tests-passed →
release-tag creates docker tag → docker images build at correct
version. Zero manual intervention across the cli → docker chain.
Closes #366 on metanorma/ci.1 parent a5ed55b commit fb0a3d6
1 file changed
Lines changed: 23 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
27 | 26 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | | - | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | | - | |
| 54 | + | |
51 | 55 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 60 | + | |
0 commit comments