From 4ebd383dfe0c6084dce2ff801206ea1996f92c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 1 Sep 2025 12:27:49 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=20Act=20=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 增加了 Act 部署命令以解决潜在的部署问题 - 该命令配置了网络模式、 artifact 和缓存服务器地址等参数 --- install-act.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-act.sh b/install-act.sh index 7383e12..9364b4d 100644 --- a/install-act.sh +++ b/install-act.sh @@ -3,6 +3,9 @@ act --version brew install act +# https://github.com/nektos/act/issues/1866#issuecomment-2250414551 +act --network="bridge" --artifact-server-addr="host.docker.internal" --cache-server-addr="host.docker.internal" --workflows=.github/workflows/ci-cd.yaml --pull=false --secret-file=.env.secrets.local --job=deploy + act --workflows .gitea/workflows/docker-image.yml -P ubuntu-arm64=gitea/runner-images:ubuntu-latest --pull=false --secret-file my.secrets # curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash