From b5a8a9e08a7084d6c714e1f09136c451c25b1e8a Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 3 Jul 2023 10:05:50 +0800 Subject: [PATCH] chore: deploy --- docker/run/build.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docker/run/build.sh b/docker/run/build.sh index f28ba9ee..bcd9c945 100755 --- a/docker/run/build.sh +++ b/docker/run/build.sh @@ -1,7 +1,14 @@ #!/bin/bash set -e -echo "请先输入一个版本号(如 1.0.6):" -read version +if $CERTD_VERSION; then + echo "CERTD_VERSION is set = $CERTD_VERSION" + version=$CERTD_VERSION +else + echo "CERTD_VERSION is not set" + echo "请先输入一个版本号(如 1.0.6):" + read version +fi + echo "您输入的版本号是: $version" export TAG="$version" sudo -E docker compose up -d