[wip] Add util script for building/pushing Docker images #10276
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
A common use case we're seeing is to build multi-arch Docker images with semantic versioning (build tags like
:3
,3.1
,latest
, etc), for which we currently have targets in the Makefile (docker-build
,docker-push-master
,docker-create-push-manifests
, etc). Maintaining this non-trivial logic in the Makefile is cumbersome, and we could also benefit from making it reusable across different repos. This PR is a first step towards making these targets reusable across different repos, including -ext, the upcoming Snowflake image, etc.Changes
Add util script for building/pushing Docker images. The script follows a similar structure as the existing
bin/release-helper.sh
script we already have in place.🚧 more details following soon.. /cc @alexrashed
TODOs:
__version__
in__init__.py
filesTesting
The script has been tested in an upstream pipeline (snowflake repo). Still need to coordinate whether and how to integrate the script into the build process of this repo.