Skip to content

Multi arch build / GHA cache #1311

Closed
Closed
@ro0NL

Description

@ro0NL

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

We're building multi arch Dockerfile (AMD/ARM)

Using a matrix of runners we noticed the default runner (ubuntu-latest) leverages GHA cache, but our custom runner doesnt.

cache-from: type=gha
cache-to: type=gha,mode=max

Are we missing something?

Image

Expected behaviour

Fast build

Actual behaviour

Slow build

Repository URL

No response

Workflow run URL

No response

YAML workflow

runs-on: ${{ matrix.runner }}
        steps:
            -
                uses: actions/checkout@v4.2.2
            -
                uses: docker/setup-buildx-action@v3.8.0
            -
                id: build
                uses: docker/build-push-action@v6.13.0
                with:
                    context: .
                    load: true
                    # https://docs.docker.com/build/ci/github-actions/cache/#github-cache
                    cache-from: type=gha
                    cache-to: type=gha,mode=max

Workflow logs

No response

BuildKit logs


Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions