mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-27 20:18:57 +00: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:
parent
518137f781
commit
48c0cf5b5d
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user