build fix 11
Build & Deploy / Build & Push Docker Image (push) Failing after 18s
Build & Deploy / Deploy to VPS (push) Has been skipped

This commit is contained in:
root
2026-07-04 15:45:38 -04:00
parent 24c58cf006
commit be30d19cdb
2 changed files with 19 additions and 4 deletions
+15
View File
@@ -407,6 +407,21 @@ Expected response:
HTTP/1.1 401 Unauthorized
```
When CI builds on the VPS and pushes directly to the local registry, `DEPLOY_REGISTRY_HOST` in `.gitea/workflows/build-and-deploy.yml` must include the registry port, for example `10.0.0.4:5000`. Because the local registry is plain HTTP, configure the VPS Docker daemon once:
```json
{
"insecure-registries": ["10.0.0.4:5000"]
}
```
If `/etc/docker/daemon.json` already exists, merge the `insecure-registries` value with the existing JSON instead of replacing the file. Then restart Docker:
```bash
sudo systemctl restart docker
docker login 10.0.0.4:5000
```
Then on the VPS restart Traefik:
```bash