Compare commits

..
3 Commits
Author SHA1 Message Date
CrazyMax f87e5991a6 Merge pull request #624 from crazy-max/skip-pull-with-endpoint
test / test (push) Failing after 17s
codeql / analyze (push) Failing after 19s
ci / main (cloud:v0.11.2-desktop.2) (push) Failing after 12s
ci / multi (push) Failing after 5s
ci / debug (push) Failing after 6s
ci / use (false) (push) Failing after 5s
ci / use (true) (push) Failing after 5s
ci / driver (image=moby/buildkit:latest) (push) Failing after 5s
ci / docker-driver (push) Failing after 5s
ci / endpoint (mycontext) (push) Failing after 8s
ci / endpoint (tcp://127.0.0.1:2375) (push) Failing after 8s
ci / buildkitd-config (push) Failing after 5s
ci / buildkitd-config-inline (push) Failing after 5s
ci / with-qemu (, all) (push) Failing after 4s
ci / with-qemu (, arm64,riscv64,arm) (push) Failing after 5s
ci / with-qemu (v0.9.1, all) (push) Failing after 4s
ci / build-ref (refs/pull/731/head) (push) Failing after 5s
ci / build-ref (refs/tags/v0.5.1) (push) Failing after 6s
ci / cleanup (true) (push) Failing after 5s
ci / main () (push) Failing after 4s
ci / main (cloud:latest) (push) Failing after 6s
ci / main (lab:latest) (push) Failing after 10s
ci / main (latest) (push) Failing after 4s
ci / main (v0.4.1) (push) Failing after 5s
ci / error (push) Failing after 7s
ci / driver (image=moby/buildkit:master network=host ) (push) Failing after 4s
ci / with-qemu (v0.9.1, arm64,riscv64,arm) (push) Failing after 4s
ci / build-ref (cb185f095fd3d9444e0aa605d3789e9e05f2a1e7) (push) Failing after 4s
ci / build-ref (master) (push) Failing after 4s
ci / standalone-cmd (push) Failing after 4s
ci / standalone-action (push) Failing after 5s
ci / append (push) Failing after 5s
ci / platforms (push) Failing after 5s
ci / docker-context (push) Failing after 4s
ci / cleanup (false) (push) Failing after 4s
ci / k3s (latest) (push) Failing after 4s
ci / k3s (v0.10.5) (push) Failing after 4s
ci / k3s (v0.11.0) (push) Failing after 5s
ci / cache-binary (false) (push) Failing after 4s
ci / cache-binary (true) (push) Failing after 4s
ci / windows-error (push) Canceled after 0s
ci / keep-state (push) Failing after 6s
ci / keep-state-error (push) Failing after 4s
skip BuildKit image pre-pulls for explicit endpoints
2026-09-16 09:47:45 +02:00
CrazyMax e7002743e0 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-16 09:40:54 +02:00
CrazyMax 3061c919c6 skip BuildKit image pre-pulls for explicit endpoints
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-16 09:40:53 +02:00
4 changed files with 26 additions and 7 deletions
+19 -2
View File
@@ -182,6 +182,15 @@ jobs:
endpoint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
endpoint:
- mycontext
- tcp://127.0.0.1:2375
env:
# only the explicit endpoint should provide access to a daemon.
DOCKER_HOST: unix:///tmp/nonexistent-docker.sock
services:
dind:
image: docker:29.3-dind@sha256:4d90f1f6c400315c2dba96d3ec93c01e64198395cbba04f79d12adce4f737029
@@ -209,11 +218,19 @@ jobs:
docker --context mycontext info
-
name: Set up Docker Buildx
id: buildx
uses: ./
with:
endpoint: mycontext
endpoint: ${{ matrix.endpoint }}
-
name: Build
env:
DOCKER_CONTEXT: mycontext
BUILDER: ${{ steps.buildx.outputs.name }}
run: |
docker buildx build --builder "$BUILDER" - <<'EOF'
FROM scratch
LABEL test=endpoint
EOF
buildkitd-config:
runs-on: ubuntu-latest
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+2 -2
View File
File diff suppressed because one or more lines are too long
+4 -2
View File
@@ -133,11 +133,13 @@ actionsToolkit.run(
if (!standalone && inputs.driver == 'docker-container') {
const buildkitImages = new Set<string>();
if (!builderExists) {
if (!builderExists && !inputs.endpoint) {
buildkitImages.add(resolveBuildKitImage(inputs.driverOpts));
}
for (const node of appendNodes) {
buildkitImages.add(resolveBuildKitImage(node['driver-opts']));
if (!node.endpoint) {
buildkitImages.add(resolveBuildKitImage(node['driver-opts']));
}
}
if (buildkitImages.size > 0) {
await core.group(`Pulling BuildKit image(s)`, async () => {