init: CA-baked woodpecker docker-buildx plugin image #1
Reference in New Issue
Block a user
Delete Branch "benvin/init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why: the k8s woodpecker backend cannot inject files/volumes into plugin containers, so
woodpeckerci/plugin-docker-buildxhas no way to trust artifactapi's internal-CA registry — every in-house image push failsx509: certificate signed by unknown authority.:latest-insecuredoes not fix it (buildkit still verifies the registry cert on push).How: bake the unkin CA into the plugin image.
Follow-ups after merge+tag: point WOODPECKER_PLUGINS_PRIVILEGED at docker-internal/plugin-docker-buildx (argocd), switch in-house repo pipelines to it, re-tag ghp so its push succeeds.
woodpecker interpolates ${CI_COMMIT_TAG} into the raw pipeline text before YAML parsing; when empty, '-t $${IMG}:${CI_COMMIT_TAG} .' collapses to '... : .' and the colon-space is parsed as a map key ('cannot unmarshal map ... into a string value'). Quote every buildah command so it stays a scalar.