Files
certd/docker/run/build.sh
2023-07-03 10:05:50 +08:00

15 lines
329 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
set -e
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