fix: set gitea checkout base url
This commit is contained in:
@@ -15,6 +15,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
github-server-url: https://api.xiaoxiajianji.com/git
|
||||
|
||||
- name: Sync code to staging workspace
|
||||
run: |
|
||||
@@ -68,6 +70,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
github-server-url: https://api.xiaoxiajianji.com/git
|
||||
|
||||
- name: Sync code to production workspace
|
||||
run: |
|
||||
|
||||
@@ -13,6 +13,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
github-server-url: https://api.xiaoxiajianji.com/git
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
@@ -41,6 +43,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
github-server-url: https://api.xiaoxiajianji.com/git
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ mypy packages/ apps/ --ignore-missing-imports
|
||||
## 故障排查
|
||||
|
||||
### Actions 触发了但 checkout 失败
|
||||
优先检查 runner 能否从 job 容器访问 Gitea 实例地址。
|
||||
优先检查 runner 能否从 job 容器访问 Gitea 实例地址;如果 Gitea 挂在 `/git` 这类子路径下,需要给 `actions/checkout` 显式传 `github-server-url`。
|
||||
|
||||
### Deploy 成功但业务链不通
|
||||
优先检查:
|
||||
|
||||
Reference in New Issue
Block a user