diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 731869f..810aea6 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -23,7 +23,7 @@ jobs: # 清空当前工作目录,防止历史残留 rm -rf ./* # 利用 Gitea 自动注入的内置变量,动态克隆当前仓库、当前分支、当前提交 - git clone --depth 1 -b ${{ gitea.ref_name }} http://gitea:3000/${{ gitea.repository }} . + git clone --depth 1 -b ${{ gitea.ref_name }} http://172.17.0.1:3000/${{ gitea.repository }} . git checkout ${{ gitea.sha }} - name: 2. 触发 Docker 容器内编译与镜像打包