sudo
Some checks failed
build and push / build-and-push (push) Failing after 2m43s

This commit is contained in:
编码猿
2025-10-06 23:17:19 +08:00
parent 9e1eff85ba
commit aefbb552e6

View File

@@ -66,5 +66,5 @@ jobs:
script: |
# 拉取刚打包的最新镜像
docker pull registry.bmycode.help/app-product:${{ github.sha }}
# 部署到 Swarm 集群
docker stack deploy -c /home/bmy/app-product.yml app-product
# 切换到管理员,要不然没权限在服务器执行 docker 命令,部署到 Swarm 集群
sudo docker stack deploy -c /home/bmy/app-product.yml app-product