kata-deploy: Use more descriptive names for IMG_{TAG,NAME}

On main we're using BASE_IMAGE_TAG and BASE_IMAGE_NAME to avoid
any kind of confusion.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-03-10 15:54:29 +01:00
parent a6bbc8af4e
commit a854355bea
2 changed files with 5 additions and 5 deletions

View File

@ -3,9 +3,9 @@
# SPDX-License-Identifier: Apache-2.0
# Specify alternative base image, e.g. clefos for s390x
ARG IMG_NAME=registry.centos.org/centos
ARG IMG_TAG=7
FROM $IMG_NAME:$IMG_TAG
ARG BASE_IMAGE_NAME=registry.centos.org/centos
ARG BASE_IMAGE_TAG=7
FROM $BASE_IMAGE_NAME:$BASE_IMAGE_TAG
ARG KATA_ARTIFACTS=./kata-static.tar.xz
ARG DESTINATION=/opt/kata-artifacts

View File

@ -20,8 +20,8 @@ IMAGE_TAG="${REGISTRY}:kata-containers-$(git rev-parse HEAD)-$(uname -m)"
echo "Building the image"
if [ "$(uname -m)" = "s390x" ]; then
docker build \
--build-arg IMG_NAME=clefos \
--build-arg IMG_TAG=7 \
--build-arg BASE_IMAGE_NAME=clefos \
--build-arg BASE_IMAGE_TAG=7 \
--tag ${IMAGE_TAG} .
else
docker build --tag ${IMAGE_TAG} .