修改构建脚本
银河音乐厅_Convert 构建 / build (push) Failing after 1m58s

This commit is contained in:
2024-06-05 20:50:41 +08:00
parent 36d43d9b4b
commit b2a7183d77
+17 -4
View File
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
echo "[1/4] 检查spleeter 2stem模型"
echo "[1/5] 检查spleeter 2stem模型"
if [ -e pretrained_models/2stems/checkpoint ]
then
echo "模型已存在,跳过下载..."
@@ -15,7 +15,7 @@ else
echo "模型下载完成"
fi
echo "[2/4] 检查python3.9..."
echo "[2/5] 检查python3.9..."
if [ -e python39*.pkg.tar.* ]
then
echo "python3.9已存在,跳过下载..."
@@ -24,7 +24,7 @@ else
echo "python3.9下载完成"
fi
echo "[3/4] 检查pipx.pyz..."
echo "[3/5] 检查pipx.pyz..."
if [ -e pipx.pyz ]
then
echo "pipx已存在,跳过下载..."
@@ -33,5 +33,18 @@ else
echo "pipx下载完成"
fi
echo "[4/4] 构建docker镜像..."
echo "[4/5] 构建docker镜像..."
systemctl start docker
docker build -t galaxymusichallv2_convert .
echo "[5/5] 推送docker镜像"
if [ a$1 == apush ]
then
docker tag galaxymusichallv2_convert:latest gitea.cattysteve.top/pig2014/galaxymusichallv2_convert:latest
docker login gitea.cattysteve.top -u pig2014 -p ${DOCKER_PASSWORD}
docker push gitea.cattysteve.top/pig2014/galaxymusichallv2_convert:latest
echo "推送完成!"
else
echo "未指定推送参数,跳过中..."
fi