mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
deploy: Fix arch in image tag
`uname -m` produces `x86_64`, but container image convention is to use `amd64`, so update this in the tag Fixes: #6820 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
42dce15b1f
commit
2856d3f23d
@ -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} .
|
||||
|
Loading…
Reference in New Issue
Block a user