fix(ci): bootstrap pipeline with upstream plugin; remove privileged mode - #4
Open
arnfred wants to merge 2 commits into
Open
fix(ci): bootstrap pipeline with upstream plugin; remove privileged mode#4arnfred wants to merge 2 commits into
arnfred wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root causes
Three issues combined to break the Woodpecker CI pipeline:
privileged: truestarts an inner dockerd. The Woodpecker agent already mounts the host docker socket into the plugin container. Withprivileged: trueset,dockerd-entrypoint.shalso starts its own dockerd inside the container. The two race against each other during socket availability checks, causing intermittent failures.gowerstreet/plugin-docker-buildx:latestonly has an arm64 build. The CI runner is amd64, so the plugin ran under QEMU emulation. The emulated dockerd timed out before becoming ready, making the pipeline consistently fail.output: type=dockercan't share the image between steps. Loading into a docker-format output only places the image in the plugin's ephemeral dockerd, not the host's — so a subsequent step can't pull it by tag.Fix
build-stagingstep: switched towoodpeckerci/plugin-docker-buildx(upstream, has native amd64+arm64 builds). Removedprivileged: true. Pushes astaging-${CI_PIPELINE_NUMBER}tag to Docker Hub instead of a local docker-format load.publishstep: pulls the freshly pushed staging image as the plugin image, verifying the new build actually works as a plugin before it becomes:latest. Removedprivileged: true.Once our fork consistently publishes both architectures, the
build-stagingstep can be switched back togowerstreet/plugin-docker-buildx.Test plan
maintriggers the pipelinebuild-stagingstep completes without dockerd timeout errorsstaging-<N>tag appears on Docker Hub forgowerstreet/plugin-docker-buildxpublishstep pulls and uses the staging image successfully:latestand:<N>tags are published as multi-arch (amd64 + arm64)🤖 Generated with Claude Code