build fix 11
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user