修复环境变量检测BUG

This commit is contained in:
chishin 2023-04-05 12:39:58 +08:00
parent 6e0e27a93b
commit fe0352b69c

View File

@ -9,7 +9,7 @@ cd "${DIR}/../.."
docker buildx create --name "Buildx-NPM" || echo
docker buildx use "Buildx-NPM"
if [ $BUILD_TAG ];then
if [ "${BUILD_TAG:-0}" != 0 ]; then
docker buildx build -f docker/Dockerfile-zh $BUILD_TAG --platform $BUILD_PLATFORM . --push
else
docker buildx build -f docker/Dockerfile-zh -t "chishin/nginx-proxy-manager-zh:dev" --platform linux/amd64,linux/arm64,linux/arm/7 . --push