fix(build): let a failed image push fail the build - #303
Merged
Merged
Conversation
The buildx push line is prefixed with `-`, so make ignores a non-zero exit.
That turns a failed push into a silent no-op.
release.yml happens to catch it, because a later cosign step reads
docker-digests.json and dies when the file was never written:
ERROR: failed to push quay.io/zncdatadev/nifi-operator:0.4.0-dev: 401 UNAUTHORIZED
make: [Makefile:155: docker-buildx] Error 1 (ignored)
jq: error: Could not open file docker-digests.json: No such file or directory
publish.yml has no cosign step, so nothing notices - the push fails, make
swallows it, and the job reports success. nifi-operator reported a successful
Publish Image on 2026-08-19 while its quay repository did not exist and every
push had been returning 401. The registry had zero tags.
Drop the prefix on the push. It stays on `buildx create` and `buildx rm`, where
tolerating failure is intentional: create fails when the builder already exists,
and rm is cleanup.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What breaks
The buildx push line is prefixed with
-, telling make to ignore a non-zeroexit. A failed push becomes a silent no-op.
release.ymlcatches it only by accident: a later cosign step readsdocker-digests.jsonand dies because the file was never written.publish.ymlhas no cosign step, so nothing notices. The push fails, makeswallows it, the job reports success.
This is not theoretical: nifi-operator's
Publish Imagereported success on2026-08-19 while
quay.io/zncdatadev/nifi-operatordid not exist and every pushhad been returning 401. The registry had zero tags. It surfaced only when a
tagged release ran the cosign step.
Change
Drop the
-on the push line.It is deliberately kept on
buildx createandbuildx rm, where toleratingfailure is correct —
createfails when the builder already exists, andrmiscleanup.
Makefile parse-checked.
🤖 Generated with Claude Code