mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-17 15:38:00 +00:00
packaging: Add infra to push the shim-v2 builder image
Let's add the needed infra for only building and pushing the shim-v2 builder image to the Kata Containers' quay.io registry. Fixes: #5478 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
1c1034255a
commit
ca8abc6cae
@ -24,10 +24,13 @@ container_image="${CC_BUILDER_REGISTRY}:shim-v2-go-${GO_VERSION}-rust-${RUST_VER
|
|||||||
EXTRA_OPTS="${EXTRA_OPTS:-""}"
|
EXTRA_OPTS="${EXTRA_OPTS:-""}"
|
||||||
REMOVE_VMM_CONFIGS="${REMOVE_VMM_CONFIGS:-""}"
|
REMOVE_VMM_CONFIGS="${REMOVE_VMM_CONFIGS:-""}"
|
||||||
|
|
||||||
sudo docker pull ${container_image} || sudo docker build \
|
sudo docker pull ${container_image} || \
|
||||||
|
(sudo docker build \
|
||||||
--build-arg GO_VERSION="${GO_VERSION}" \
|
--build-arg GO_VERSION="${GO_VERSION}" \
|
||||||
--build-arg RUST_VERSION="${RUST_VERSION}" \
|
--build-arg RUST_VERSION="${RUST_VERSION}" \
|
||||||
-t "${container_image}" "${script_dir}"
|
-t "${container_image}" "${script_dir}" && \
|
||||||
|
# No-op unless PUSH_TO_REGISTRY is exported as "yes"
|
||||||
|
push_to_registry "${container_image}")
|
||||||
|
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
if [ ${arch} = "ppc64le" ]; then
|
if [ ${arch} = "ppc64le" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user