Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow exiting on build failure with fallback #53

Merged
merged 2 commits into from
Oct 2, 2023
Merged

Conversation

kylecarbs
Copy link
Member

This adds support for exiting envbuilder on build failure even when a FALLBACK_IMAGE is specified.

This adds support for exiting envbuilder on build failure
even when a `FALLBACK_IMAGE` is specified.
@kylecarbs kylecarbs self-assigned this Oct 2, 2023
Copy link
Collaborator

@aaronlehmann aaronlehmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

envbuilder.go Outdated
@@ -137,6 +137,12 @@ type Options struct {
// a Dockerfile is not found.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update this to mention it also falls back on build failure unless ExitOnBuildFailure is set?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, will change!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kylecarbs kylecarbs merged commit 1e03bc8 into main Oct 2, 2023
1 check passed
@kylecarbs kylecarbs deleted the exitonfailure branch October 2, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants