fix deploy: use buildkit_driveropt network=host for registry push
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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user