Skip to content

Commit

Permalink
packaging: Add infra to push the shim-v2 builder image
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fidencio committed Feb 17, 2023
1 parent 24767d8 commit 7ee00d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/packaging/static-build/shim-v2/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ PREFIX=${PREFIX:-/opt/kata}
container_image="${BUILDER_REGISTRY}:shim-v2-go-${GO_VERSION}-rust-${RUST_VERSION}-$(get_last_modification ${repo_root_dir} ${script_dir})-$(uname -m)"

sudo docker pull ${container_image} || \
sudo docker build \
(sudo docker build \
--build-arg GO_VERSION="${GO_VERSION}" \
--build-arg RUST_VERSION="${RUST_VERSION}" \
-t "${container_image}" \
"${script_dir}"
"${script_dir}" && \
push_to_registry "${container_image}")

arch=$(uname -m)
if [ ${arch} = "ppc64le" ]; then
Expand Down

0 comments on commit 7ee00d8

Please sign in to comment.