Skip to content

fix: do not error if failed to push image (#390) #423

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

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

johnstcn
Copy link
Member

Relates to #385

This commit adds an option ENVBUILDER_EXIT_ON_PUSH_FAILURE that controls the previous behaviour of exiting with an error if ENVBUILDER_PUSH_IMAGE was set to a truthy value and we failed to push the image.

  • Before, Envbuilder would always exit with an error on a failed push.
  • Now, Envbuilder will only exit with an error if ENVBUILDER_EXIT_ON_PUSH_FAILURE is set to a truthy value.
  • Otherwise, Envbuilder will continue building the image and executing ENVBUILDER_INIT_SCRIPT even if push fails.

(cherry picked from commit b18cd0e)

Relates to #385

This commit adds an option ENVBUILDER_EXIT_ON_PUSH_FAILURE that controls the previous behaviour of exiting with an error if ENVBUILDER_PUSH_IMAGE was set to a truthy value and we failed to push the image.

- Before, Envbuilder would always exit with an error on a failed push.
- Now, Envbuilder will only exit with an error if ENVBUILDER_EXIT_ON_PUSH_FAILURE is set to a truthy value.
- Otherwise, Envbuilder will continue building the image and executing ENVBUILDER_INIT_SCRIPT even if push fails.

(cherry picked from commit b18cd0e)
@johnstcn johnstcn changed the base branch from release/1.0 to cj/release/1.0/logging-tty November 25, 2024 14:37
@johnstcn johnstcn self-assigned this Dec 2, 2024
Base automatically changed from cj/release/1.0/logging-tty to release/1.0 December 2, 2024 11:26
@johnstcn johnstcn merged commit 4cba91f into release/1.0 Dec 2, 2024
@johnstcn johnstcn deleted the cj/release/1.0/exit-on-push-failure branch December 2, 2024 11:26
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.

1 participant