ci(forgejo): let the amd64 dind daemon push to the in-cluster registry
Forgejo's container registry now lives in the cluster and is reachable only as the plain-HTTP ClusterIP forgejo.forgejo.svc.cluster.local:3000. Docker treats only 127.0.0.0/8 as insecure, so any workflow logging in to or pushing to that host would fail with "server gave HTTP response to HTTPS client". Adds --insecure-registry for that host to the amd64 dind daemon, which is the runner the osint-dashboard build now targets (amd64 matches the cluster, so images are usable on the nodes).
This commit is contained in:
parent
5f5a0752ff
commit
318e633419
1 changed files with 10 additions and 1 deletions
|
|
@ -83,7 +83,16 @@ spec:
|
||||||
# Clear the stale runtime state first so a restart is
|
# Clear the stale runtime state first so a restart is
|
||||||
# self-healing.
|
# self-healing.
|
||||||
rm -f /var/run/docker.pid /var/run/docker.sock
|
rm -f /var/run/docker.pid /var/run/docker.sock
|
||||||
dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 &
|
# Forgejo's container registry is reached in-cluster as a plain
|
||||||
|
# HTTP ClusterIP (forgejo.forgejo.svc.cluster.local:3000).
|
||||||
|
# Docker only treats 127.0.0.0/8 as insecure by default, so
|
||||||
|
# without this a workflow that logs in to or pushes to that host
|
||||||
|
# dies with "server gave HTTP response to HTTPS client".
|
||||||
|
# The public hostname stays HTTPS via Cloudflare, which 413s
|
||||||
|
# layer uploads >~100MB, so in-cluster pushes are the reliable
|
||||||
|
# path for large images.
|
||||||
|
dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 \
|
||||||
|
--insecure-registry=forgejo.forgejo.svc.cluster.local:3000 &
|
||||||
pid=$!
|
pid=$!
|
||||||
i=0
|
i=0
|
||||||
while [ "$i" -lt 30 ]; do
|
while [ "$i" -lt 30 ]; do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue