buildkit
buildkit copied to clipboard
Stuck in "exporting to GitHub Actions Cache / preparing build cache for export" using github actions cache
Hi all! Currently, I'm encountering some issues while uploading the cache to GitHub Actions. I've been stuck for hours with the following problem:
#48 exporting to GitHub Actions Cache #48 preparing build cache for export
I captured the following log from the buildkit container:
The "-------------------------- AFTER ALMOST 30 MINUTES --------------------------" was added by me.
Currently, I'm using the following version tags:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push with cache
uses: docker/build-push-action@v5
env:
DOCKER_BUILDKIT: 1
with:
context: ${{ inputs.dockerContext }}
push: ${{ inputs.dockerPush }}
file: ${{ inputs.dockerfilePath }}
tags: ${{ inputs.legacyMode == 'true' && steps.ids-legacy.outputs.tags || steps.ids-not-legacy.outputs.tags }}
platforms: ${{ inputs.buildPlatform }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: ${{ inputs.dockerBuildArgs }}
provenance: false
Has anyone else encountered this issue before?
Ty in advance!
Seeing a similar issue where buildkitd eats all the memory at the same step with a registry cache.
Happened to me too, job stuck until timeout. I needed to forcely cancel the workflow and start over. It successfuly pushes after some retries.