fix deploy: use buildkit_driveropt network=host for registry push
Some checks failed
ci/woodpecker/push/infra-ci Pipeline was successful
coverage 99% coverage
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline failed

The buildx docker-container driver runs buildkit in a separate container
where localhost is its own loopback. With network=host, buildkit shares
the host network so localhost:3000 reaches Gitea.
This commit is contained in:
kert
2026-03-22 11:35:06 -04:00
parent 7b63207f5c
commit 410e3db49b
2 changed files with 20 additions and 10 deletions

View File

@@ -39,8 +39,9 @@ steps:
# ── Notebooks image ───────────────────────────────────────── # ── Notebooks image ─────────────────────────────────────────
- name: build-push-notebooks - name: build-push-notebooks
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/notebooks repo: localhost:3000/homelab/notebooks
registry: localhost:3000 registry: localhost:3000
dockerfile: notebooks/Dockerfile dockerfile: notebooks/Dockerfile
@@ -72,8 +73,9 @@ steps:
# ── Zotero image ──────────────────────────────────────────── # ── Zotero image ────────────────────────────────────────────
- name: build-push-zotero - name: build-push-zotero
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/zotero repo: localhost:3000/homelab/zotero
registry: localhost:3000 registry: localhost:3000
dockerfile: zotero/Dockerfile dockerfile: zotero/Dockerfile
@@ -114,8 +116,9 @@ steps:
- cp /host-data/bib.sqlite data/ 2>/dev/null || true - cp /host-data/bib.sqlite data/ 2>/dev/null || true
- name: build-push-docs - name: build-push-docs
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/docs repo: localhost:3000/homelab/docs
registry: localhost:3000 registry: localhost:3000
dockerfile: docs/Dockerfile dockerfile: docs/Dockerfile
@@ -149,8 +152,9 @@ steps:
# ── API image ─────────────────────────────────────────────── # ── API image ───────────────────────────────────────────────
- name: build-push-api - name: build-push-api
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/api repo: localhost:3000/homelab/api
registry: localhost:3000 registry: localhost:3000
dockerfile: api/Dockerfile dockerfile: api/Dockerfile
@@ -182,8 +186,9 @@ steps:
# ── MC (MinIO Client) sidecar ──────────────────────────────── # ── MC (MinIO Client) sidecar ────────────────────────────────
- name: build-push-mc - name: build-push-mc
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/mc repo: localhost:3000/homelab/mc
registry: localhost:3000 registry: localhost:3000
dockerfile: rustfs/Dockerfile.mc dockerfile: rustfs/Dockerfile.mc

View File

@@ -3,8 +3,9 @@ when:
steps: steps:
- name: build-push-notebooks - name: build-push-notebooks
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/notebooks repo: localhost:3000/homelab/notebooks
registry: localhost:3000 registry: localhost:3000
dockerfile: notebooks/Dockerfile dockerfile: notebooks/Dockerfile
@@ -22,8 +23,9 @@ steps:
- /run/user/1000/docker.sock:/var/run/docker.sock - /run/user/1000/docker.sock:/var/run/docker.sock
- name: build-push-zotero - name: build-push-zotero
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/zotero repo: localhost:3000/homelab/zotero
registry: localhost:3000 registry: localhost:3000
dockerfile: zotero/Dockerfile dockerfile: zotero/Dockerfile
@@ -49,8 +51,9 @@ steps:
- cp /host-data/bib.sqlite data/ 2>/dev/null || true - cp /host-data/bib.sqlite data/ 2>/dev/null || true
- name: build-push-docs - name: build-push-docs
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/docs repo: localhost:3000/homelab/docs
registry: localhost:3000 registry: localhost:3000
dockerfile: docs/Dockerfile dockerfile: docs/Dockerfile
@@ -70,8 +73,9 @@ steps:
- prep-docs-context - prep-docs-context
- name: build-push-api - name: build-push-api
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/api repo: localhost:3000/homelab/api
registry: localhost:3000 registry: localhost:3000
dockerfile: api/Dockerfile dockerfile: api/Dockerfile
@@ -89,8 +93,9 @@ steps:
- /run/user/1000/docker.sock:/var/run/docker.sock - /run/user/1000/docker.sock:/var/run/docker.sock
- name: build-push-mc - name: build-push-mc
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:5
settings: settings:
buildkit_driveropt: network=host
repo: localhost:3000/homelab/mc repo: localhost:3000/homelab/mc
registry: localhost:3000 registry: localhost:3000
dockerfile: rustfs/Dockerfile.mc dockerfile: rustfs/Dockerfile.mc