feat: update mode to branch

feature/update_version
AoyuQC 2023-11-06 05:43:32 +00:00
parent a89e995035
commit 434c54c0af
1 changed files with 5 additions and 5 deletions

View File

@ -4,18 +4,18 @@
# 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
branch=$1
tag=$2
commit_id=$3
if [ "$mode" = "" ] || [ "$tag" = "" ] || [ "$commit_id" = "" ]
if [ "$branch" = "" ] || [ "$tag" = "" ] || [ "$commit_id" = "" ]
then
echo "Usage: $0 <extension-branch> <image-tag> <commit_id>"
exit 1
fi
./build_and_push.sh Dockerfile.inference.from_scratch aigc-webui-inference $mode $tag $commit_id
./build_and_push.sh Dockerfile.inference.from_scratch aigc-webui-inference $branch $tag $commit_id
./build_and_push.sh Dockerfile.utils.from_scratch aigc-webui-utils $mode $tag $commit_id
./build_and_push.sh Dockerfile.utils.from_scratch aigc-webui-utils $branch $tag $commit_id
./build_and_push.sh Dockerfile.dreambooth.from_scratch aigc-webui-dreambooth-training $mode $tag $commit_id
./build_and_push.sh Dockerfile.dreambooth.from_scratch aigc-webui-dreambooth-training $branch $tag $commit_id