chore: deploy

pull/21/merge
xiaojunnuo 2023-07-03 10:05:50 +08:00
parent 35632da284
commit b5a8a9e08a
1 changed files with 9 additions and 2 deletions

View File

@ -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