mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-24 10:41:43 +00:00
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:
parent
a6bbc8af4e
commit
a854355bea
@ -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
|
||||
|
||||
|
@ -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} .
|
||||
|
Loading…
Reference in New Issue
Block a user