gitea fixes
This commit is contained in:
@@ -135,6 +135,7 @@ Optional secrets (workflow has defaults):
|
||||
|------|--------|-------------|
|
||||
| `DEPLOY_VPS_HOST` | `188.116.23.7` | Only if your Staged VPS has a different IP. |
|
||||
| `DEPLOY_VPS_USER` | `root` | Only if the deploy user is not `root`. |
|
||||
| `GITEA_HOST_IP` | e.g. `172.20.0.1` | If checkout fails with "Could not resolve host: server", set this to the **default gateway** seen from the job container. Run a debug job that runs `ip route show default \| awk '{print $3}'` and use that value. The workflow defaults to `172.20.0.1` if unset. |
|
||||
|
||||
---
|
||||
|
||||
@@ -292,6 +293,9 @@ git push origin main
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- **Could not resolve host: server** (during checkout)
|
||||
The deploy workflow uses a manual clone via the runner host IP. Set repository secret `GITEA_HOST_IP` to the default gateway as seen from the job container (e.g. run a debug job with `ip route show default | awk '{print $3}'` and use that value, often `172.20.0.1` or `172.17.0.1`). The workflow defaults to `172.20.0.1` if the secret is not set.
|
||||
|
||||
- **Permission denied (publickey)**
|
||||
Check: public key in `authorized_keys` on VPS, private key in `DEPLOY_SSH_PRIVATE_KEY`, no extra spaces/newlines when pasting.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user