Merge pull request #6821 from stevenhorsman/container-image-arch-consistency

deploy: Fix arch in image tag
This commit is contained in:
Fabiano Fidêncio 2023-05-15 11:16:01 +02:00 committed by GitHub
commit 802cd2f673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,9 @@ cp ${KATA_DEPLOY_ARTIFACT} ${KATA_DEPLOY_DIR}
pushd ${KATA_DEPLOY_DIR}
IMAGE_TAG="${REGISTRY}:kata-containers-$(git rev-parse HEAD)-$(uname -m)"
local arch=$(uname -m)
[ "$arch" = "x86_64" ] && arch="amd64"
IMAGE_TAG="${REGISTRY}:kata-containers-$(git rev-parse HEAD)-${arch}"
echo "Building the image"
docker build --tag ${IMAGE_TAG} .