Contributing guidelines
I've found a bug, and:
Description
Since the buildx history export change introduced in 6.17.0, the post build phase hangs every time. Setting to legacy build with DOCKER_BUILD_EXPORT_LEGACY or downgrading to <6.17.0 fixes the problem.
Expected behaviour
Post build step should complete relatively quickly.
Actual behaviour
Post build step hangs indefinitely.
Post job cleanup.
Post job cleanup.
Generating build summary
exporting build record to /home/runner/_work/_temp/docker-actions-toolkit-d5qy7V/export
Post job cleanup.
Repository URL
No response
Workflow run URL
No response
YAML workflow
- uses: actions/checkout@v4
if: ${{ !inputs.skip_checkout }}
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v3
with:
driver: kubernetes
- name: Build and push image
uses: docker/build-push-action@v6.18.0
with:
context: .
build-args: ${{ inputs.build_args }}
file: ${{ inputs.dockerfile_path }}
cache-from: type=gha,scope=${{ github.ref_name }}
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}
push: true
secret-files:[REDACTED]
tags: ${{ env.TAGS }}
platforms: ${{ inputs.platforms }}
# env: uncommenting this stops post build from hanging
# DOCKER_BUILD_EXPORT_LEGACY: true
Workflow logs
Post job cleanup.
Post job cleanup.
Generating build summary
exporting build record to /home/runner/_work/_temp/docker-actions-toolkit-d5qy7V/export
Post job cleanup.
Hangs here. We did see one run where the buildx history export was the last command and seemed to be hanging, this would make sense when we take into account the fact that legacy works and <6.17 works also.
BuildKit logs
Additional info
No response
Contributing guidelines
I've found a bug, and:
Description
Since the buildx history export change introduced in 6.17.0, the post build phase hangs every time. Setting to legacy build with
DOCKER_BUILD_EXPORT_LEGACYor downgrading to <6.17.0 fixes the problem.Expected behaviour
Post build step should complete relatively quickly.
Actual behaviour
Post build step hangs indefinitely.
Repository URL
No response
Workflow run URL
No response
YAML workflow
Workflow logs
Hangs here. We did see one run where the
buildx history exportwas the last command and seemed to be hanging, this would make sense when we take into account the fact that legacy works and <6.17 works also.BuildKit logs
Additional info
No response