19 lines
551 B
Bash
Executable File
19 lines
551 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script shows how to build the Docker image and push it to ECR
|
|
|
|
# The argument to this script is the image name. This will be used as the image on the local
|
|
# machine and combined with the account and region to form the repository name for ECR.
|
|
mode=$1
|
|
tag=$2
|
|
commit_id=$3
|
|
|
|
if [ "$mode" = "" ] || [ "$tag" = "" ] || [ "$commit_id" = "" ]
|
|
then
|
|
echo "Usage: $0 <extension-branch> <image-tag> <commit_id>"
|
|
exit 1
|
|
fi
|
|
|
|
#./build_and_push.sh Dockerfile.inference.cn.from_scratch aigc-webui-inference $mode $tag $commit_id
|
|
|