-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement annotation-based rebase hints (#960)
* Implement annotation-based rebase hints `crane rebase` now inspects the original image for annotations to identify its old base and new base images. If those are found, and --old_base and --new_base flags aren't specified, those will be used. If the --rebased flag is not passed, the rebased image will be the tagged with the original image reference; if it was originally specified by digest, the rebased image will be tagged with :rebased (instead of stripping the digest and pushing to :latest) `crane rebase` now prints the full pushed image reference, instead of just the digest (aiding embedding in other bash pipelines), and adds annotations to aid future rebasings. This also adds a bash test that covers the rebase case for detected base image information. * rm rebase_cloudbuild.yaml, exercise :rebased tagging logic in rebase_test.sh * remove debug logging * use crane.Pull to honor flags * pick up improvements from crane flatten * keep --rebased for backcompat * review feedback * update codegen * remove Verify GitHub Action; it did nothing that Presubmit didn't do * update rebase.md docs
- Loading branch information
Showing
6 changed files
with
270 additions
and
152 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.