Commit 07d8936
authored
ci(docker): tag-only trigger for prod image build (#1392)
Drop `push: branches: [main]` and the `pull_request:` block from
docker-image.yml so the workflow only fires on `*.*.*` tag pushes
and manual `workflow_dispatch` reruns. Saves Actions minutes — the
multi-arch (amd64 + qemu-emulated arm64) build is the most expensive
job in the matrix and was burning ~8-15 minutes per main-push and
per qualifying PR for floating `:main` / `:sha-<short>` images that
self-hosters don't pull (the docs steer everyone to released semver
tags). The image surface is small + stable, runtime-affecting changes
always ship behind a release tag, and verifying-at-tag is sufficient.
Trade-off the project explicitly accepts: a broken Dockerfile /
entrypoint that landed via a green PR isn't caught by CI until the
next tag push. AGENTS.md documents this — contributors who edit any
file the runtime image bakes in MUST run the local
`docker buildx build --platform linux/amd64,linux/arm64
-f docker/Dockerfile.prod .` command before opening the PR; the
local command IS the per-PR gate.
Companion cleanups so nothing else lies about the trigger surface:
- Drop the `type=ref,event=branch` / `event=pr` / `type=sha` rules
from docker/metadata-action — those produced the now-defunct
`:main` and `:sha-<short>` floating tags that won't exist anymore.
- Drop the `if: github.event_name != 'pull_request'` gates from
the GHCR-login, cosign-installer, and cosign-sign steps — there
is no PR trigger for them to short-circuit. `push: true` on the
build-push step too (was conditional, no longer needs to be).
- Update the operator-facing tag table in
`docs/src/content/docs/getting-started/quickstart-docker.mdx` to
drop the `:main` and `:sha-<short>` rows + add a paragraph
pointing self-hosters who want a yet-unreleased fix at a local
`docker buildx build`.
- Update the Dockerfile's OCI-labels comment to reference
workflow_dispatch / local builds instead of the gone tag patterns.
- Update AGENTS.md:
- Quality gates table heading: "seven gates on every PR" →
"six gates on every PR"; the seventh row is annotated as
release-only with the contributor-side responsibility.
- "Keep the docs in sync" row for the prod-docker cluster
spells out that the gate is release-only and the local
command is the per-PR check.
- "Prod Docker image specifics" block rewritten end-to-end
around the tag-only contract — drops the dead path-filter
paragraph + the verify-only-PR-build paragraph + the now-
unnecessary cosign-PR-exemption paragraph.
Stacked on #1391 because the workflow file lives on that branch.1 parent ba3c887 commit 07d8936
4 files changed
Lines changed: 100 additions & 109 deletions
File tree
- .github/workflows
- docker
- docs/src/content/docs/getting-started
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
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 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
60 | 50 | | |
61 | 51 | | |
62 | 52 | | |
63 | | - | |
64 | | - | |
65 | 53 | | |
66 | 54 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 55 | | |
83 | 56 | | |
84 | 57 | | |
| |||
103 | 76 | | |
104 | 77 | | |
105 | 78 | | |
106 | | - | |
107 | | - | |
| 79 | + | |
108 | 80 | | |
109 | 81 | | |
110 | 82 | | |
| |||
115 | 87 | | |
116 | 88 | | |
117 | 89 | | |
118 | | - | |
119 | | - | |
| 90 | + | |
120 | 91 | | |
121 | | - | |
122 | 92 | | |
123 | 93 | | |
124 | 94 | | |
125 | 95 | | |
126 | 96 | | |
127 | 97 | | |
128 | 98 | | |
129 | | - | |
130 | 99 | | |
131 | | - | |
132 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
133 | 105 | | |
134 | | - | |
135 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
136 | 109 | | |
137 | 110 | | |
138 | 111 | | |
139 | 112 | | |
140 | 113 | | |
141 | 114 | | |
142 | | - | |
143 | | - | |
144 | 115 | | |
145 | 116 | | |
146 | 117 | | |
147 | 118 | | |
148 | | - | |
149 | 119 | | |
150 | 120 | | |
151 | 121 | | |
| |||
160 | 130 | | |
161 | 131 | | |
162 | 132 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
169 | 137 | | |
170 | 138 | | |
171 | 139 | | |
172 | 140 | | |
173 | 141 | | |
174 | 142 | | |
175 | 143 | | |
176 | | - | |
| 144 | + | |
177 | 145 | | |
178 | 146 | | |
179 | 147 | | |
180 | 148 | | |
181 | 149 | | |
182 | 150 | | |
183 | 151 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
189 | 156 | | |
190 | 157 | | |
191 | | - | |
192 | 158 | | |
193 | 159 | | |
194 | 160 | | |
195 | 161 | | |
196 | 162 | | |
197 | | - | |
198 | 163 | | |
199 | 164 | | |
200 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| |||
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
194 | | - | |
| 197 | + | |
195 | 198 | | |
196 | 199 | | |
197 | 200 | | |
| |||
340 | 343 | | |
341 | 344 | | |
342 | 345 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
351 | 368 | | |
352 | 369 | | |
353 | 370 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
362 | 382 | | |
363 | 383 | | |
364 | 384 | | |
365 | 385 | | |
366 | 386 | | |
367 | 387 | | |
368 | 388 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
373 | 392 | | |
374 | 393 | | |
375 | 394 | | |
376 | | - | |
377 | | - | |
| 395 | + | |
| 396 | + | |
378 | 397 | | |
379 | 398 | | |
380 | 399 | | |
| |||
0 commit comments