Commit a74fbaf
committed
feat: add includeTag parameter to doBuild for tagged references
This fixes an issue where "resourceKoBuildCreate" uses the result of
"doPublish" as the "image_ref", but in "resourceKoBuildRead" the result
of "doBuild" as the "image_ref". This causes an issue when a single
"tags" is configured and the "image_ref" from "doPublish" will include
the tag, but the the "image_ref" from "doBuild" does not, and will always
cause the resource to be recreated.
- Add includeTag boolean parameter to doBuild function
- When includeTag is true, return tagged reference with digest appended
- Update doBuild calls: false for Create, true for Read operations
- Maintains backward compatibility with existing behavior1 parent f05a408 commit a74fbaf
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
256 | 262 | | |
257 | 263 | | |
258 | 264 | | |
| |||
350 | 356 | | |
351 | 357 | | |
352 | 358 | | |
353 | | - | |
| 359 | + | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
| |||
373 | 379 | | |
374 | 380 | | |
375 | 381 | | |
376 | | - | |
| 382 | + | |
377 | 383 | | |
378 | 384 | | |
379 | 385 | | |
| |||
0 commit comments