修改docker运行逻辑
银河音乐厅_Convert 构建 / build (push) Successful in 3m34s

This commit is contained in:
2024-06-06 07:48:28 +08:00
parent eff2fdceed
commit 66b7774d5c
+4 -3
View File
@@ -39,9 +39,10 @@ docker build -t galaxymusichallv2_convert .
echo "[5/5] 推送docker镜像" echo "[5/5] 推送docker镜像"
if [ a$1 == apush ] if [ a$1 == apush ]
then then
docker tag galaxymusichallv2_convert:latest gitea.cattysteve.top/pig2014/galaxymusichallv2_convert:latest #docker tag galaxymusichallv2_convert:latest gitea.cattysteve.top/pig2014/galaxymusichallv2_convert:latest
docker login gitea.cattysteve.top -u pig2014 -p $2 #docker login gitea.cattysteve.top -u pig2014 -p $2
docker push gitea.cattysteve.top/pig2014/galaxymusichallv2_convert:latest #docker push gitea.cattysteve.top/pig2014/galaxymusichallv2_convert:latest
docker run -d -p 12400:8000 galaxymusichallv2_convert:latest
echo "推送完成!" echo "推送完成!"
else else
echo "未指定推送参数,跳过中..." echo "未指定推送参数,跳过中..."