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

Force push bundles #2331

Merged
merged 4 commits into from
Sep 7, 2022
Merged

Conversation

carolynvs
Copy link
Member

@carolynvs carolynvs commented Sep 3, 2022

What does this change

When a bundle is pushed to a registry, check if the destination reference already exists and require that --force is specified to overwrite it.

What issue does it fix

Close #2017

Notes for the reviewer

I have created #2337 to track coming up with a more robust/reliable system for comparing the contents of the local bundle to the remote bundle. It would be great if we can tell if they are the same, and not just ask them to repush with --force when it already matches.

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Reviewer Checklist

  • Comment with /azp run test-porter-release if a magefile or build script was modified
  • Comment with /azp run porter-integration if it's a non-trivial PR

@carolynvs carolynvs force-pushed the force-push-bundles branch 2 times, most recently from e949399 to 1e472e7 Compare September 6, 2022 21:33
When a bundle is pushed to a registry, check if the destination reference already exists and require that --force is specified to overwrite it.

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs marked this pull request as ready for review September 6, 2022 22:49
Signed-off-by: Carolyn Van Slyck <[email protected]>
@VinozzZ VinozzZ merged commit 8e005d5 into getporter:release/v1 Sep 7, 2022
@carolynvs carolynvs deleted the force-push-bundles branch September 7, 2022 16:10
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.

Make overwriting artifacts configurable
2 participants