docker / build-push-action

GitHub Action to build and push Docker images with Buildx
https://github.com/marketplace/actions/build-and-push-docker-images
Apache License 2.0
4.1k stars 525 forks source link

Unexpected error with v5.4.0 release #1135

Closed javierjulio closed 1 week ago

javierjulio commented 3 weeks ago

Contributing guidelines

I've found a bug, and:

Description

I started encountering errors with docker/build-push-action@v5 today since v5.4.0 was released. Since it was on a minor version the error was unexpected. This is the message I see for the action step failure:

ERROR: docker exporter does not currently support exporting manifest lists Error: buildx failed with: ERROR: docker exporter does not currently support exporting manifest lists

Downgrading and locking the action to docker/build-push-action@v5.3.0 helps avoid any errors in the short term.

It's likely that I'm doing something wrong with the action setup. I don't understand what the error means with how I'm using the action. I believe the error may be related to this change. Could the error have to do with using a self-hosted runner?

Example action setup:

- uses: actions/checkout@v4
- uses: docker/login-action@v3
  with:
    # ...
- uses: docker/setup-buildx-action@v3
  id: buildx
- uses: docker/build-push-action@v5
  with:
    context: .
    builder: ${{ steps.buildx.outputs.name }}
    build-args: |
      # ...
    provenance: false
    load: true
    tags: example-name:${{ github.sha }}
    cache-from: type=gha,scope=${{ github.workflow }}
    cache-to: type=gha,scope=${{ github.workflow }},mode=max

Expected behaviour

No errors on a minor version (v5.4.0) update.

Actual behaviour

The v5.4.0 action fails to run with an error message as noted in the description. It's likely user error though.

Repository URL

No response

Workflow run URL

No response

YAML workflow

- uses: actions/checkout@v4
- uses: docker/login-action@v3
  with:
    # ...
- uses: docker/setup-buildx-action@v3
  id: buildx
- uses: docker/build-push-action@v5
  with:
    context: .
    builder: ${{ steps.buildx.outputs.name }}
    build-args: |
      # ...
    provenance: false
    load: true
    tags: example-name:${{ github.sha }}
    cache-from: type=gha,scope=${{ github.workflow }}
    cache-to: type=gha,scope=${{ github.workflow }},mode=max

Workflow logs

No response

BuildKit logs

No response

Additional info

No response

crazy-max commented 3 weeks ago

Thanks for this report! Do you have a link to your repository or full logs?

I can't repro with the following workflow:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v4
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
        with:
          buildkitd-flags: --debug
      -
        name: Build and push
        uses: docker/build-push-action@v5
        with:
          context: .
          provenance: false
          load: true
          tags: example-name:${{ github.sha }}

image

crazy-max commented 1 week ago

Closing this issue since we don't have any feedback but feel free to left a comment if you have more info, thanks.