mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-31 21:14:25 +01:00
kata-deploy: Adjust build & upload script
Let's adjust the `kata-deploy-build-and-upload-image.sh` to build the
image following the `kata-containers-${commit}` tag pattern, and to push
it to the quay.io/confidential-containers/runtime-payload repo.
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Copyright 2021 Fabiano Fidêncio
|
||||
# Copyright 2022 Intel
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
KATA_DEPLOY_DIR="`dirname $0`/../"
|
||||
KATA_DEPLOY_ARTIFACT="$1"
|
||||
KATA_DEPLOY_DIR="`dirname $0`/../../kata-deploy-cc"
|
||||
KATA_DEPLOY_ARTIFACT="${1:-"kata-static.tar.xz"}"
|
||||
|
||||
echo "Copying $KATA_DEPLOY_ARTIFACT to $KATA_DEPLOY_DIR"
|
||||
cp $KATA_DEPLOY_ARTIFACT $KATA_DEPLOY_DIR
|
||||
|
||||
pushd $KATA_DEPLOY_DIR
|
||||
|
||||
IMAGE_TAG="quay.io/kata-containers/kata-deploy-cc:v0"
|
||||
IMAGE_TAG="quay.io/confidential-containers/runtime-payload:kata-containers-$(git rev-parse HEAD)"
|
||||
|
||||
echo "Building the image"
|
||||
docker build --tag $IMAGE_TAG .
|
||||
|
||||
Reference in New Issue
Block a user