Commit cdb6312
fix: use target_tag input for container build when called as subworkflow
Phase 2 built the docker image with tag 'main_build' whenever the
top-level event was a push, but the push step tags it with the
version input ('integration_build'), so the build/push tags diverged
and the push failed. github.event_name reflects the top-level event,
which is 'push' when integration-test triggers main-build from a
branch push. Guard the 'main_build' tag with !is_workflow_call so a
called build uses the provided target_tag, keeping direct pushes to
main unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 91dcceb commit cdb6312
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
0 commit comments