Skip to content

ci: build via shared remote buildkit endpoint - #26

Merged
acoshift merged 1 commit into
mainfrom
remote-buildkit-endpoint
Jun 25, 2026
Merged

ci: build via shared remote buildkit endpoint#26
acoshift merged 1 commit into
mainfrom
remote-buildkit-endpoint

Conversation

@acoshift

Copy link
Copy Markdown
Member

What

Build the Docker image against the shared remote BuildKit instance so every
build reuses one warm layer cache.

  • docker/setup-buildx-action now uses driver: remote with
    endpoint: ${{ secrets.REMOTE_BUILD_ENDPOINT }}, replacing the per-run
    ephemeral local builder (version: latest).
  • runs-on: self-hosted so the runner can reach the private BuildKit endpoint.

Why

A single long-lived BuildKit instance keeps the layer cache warm across builds,
so repeated builds are significantly faster than re-warming a fresh local
builder every run.

Notes

  • Requires the REMOTE_BUILD_ENDPOINT repo secret (already configured) and a
    self-hosted runner with network reach to that endpoint.
  • If the endpoint later requires mTLS, add driver-opts with cacert/cert/key.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UujJC8ThyuTr9EwZjnwcox

Point docker/setup-buildx-action at the shared REMOTE_BUILD_ENDPOINT
buildkit instance (driver: remote) instead of spinning up an ephemeral
local builder per run, so all builds reuse one warm layer cache. Pin the
build job to a self-hosted runner that can reach the private endpoint.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UujJC8ThyuTr9EwZjnwcox
@acoshift
acoshift merged commit bdb2298 into main Jun 25, 2026
2 checks passed
@acoshift
acoshift deleted the remote-buildkit-endpoint branch June 25, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant