You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
We've experienced the builder returning success after failing to push to the registry when the registry is down. In our deploy process this ends up giving us false positives that code has been shipped. Ideally we would have this fail with a non-zero exit status.
I wonder why it's returning successfully when it should be failing. It must be something to do with how it's architected with git. The builder is a post-receive script, yet the git push finished successfully because the repository was successfully pushed. We'll have to investigate on how we can make git return a failure from the post-receive script.
The post-receive hook, by design, can not reject pushes. I still think it’s better to move compilation to pre-receive. (Heroku does that.) Suggested workflow:
Spin up the builder in pre-receive.
Create artifacts for the incoming commit.
Decline push if artifacts failed to build.
At the end of the push you will always have a Docker image linked to your HEAD.
Send the release linked to HEAD to fleet if if differs from the current one
We've experienced the builder returning success after failing to push to the registry when the registry is down. In our deploy process this ends up giving us false positives that code has been shipped. Ideally we would have this fail with a non-zero exit status.
The text was updated successfully, but these errors were encountered: