-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring image building logic into the Bash library
Previously, useful logic for building images like the choice to tag images with `:latest` as well as `:sha`, automatic re-try logic, `git` cleanup, nice output printing, etc, were all local to the top-level `hack/build-images.sh` entrypoint. There's no reason for that to be the case and as other people find themselves needing those features, we should just expose all of that with `os::build::image`. This is not an entirely backwards compatible patch. The following changes were made: - support for explicitly providing a Dockerfile was removed from the signature of `os::build::image` as this was an entirely unused feature. - the order of arguments was re-arranged so that all of the image build utilites were in alignment -- first the tag, then the dir, etc. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
- Loading branch information
1 parent
c09c601
commit 9753bf5
Showing
5 changed files
with
155 additions
and
120 deletions.
There are no files selected for viewing
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
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
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
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
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