Skip to content

v3 breaks build for *.output=type=docker,dest #131

@darthmaim

Description

@darthmaim

Behaviour

After updating to docker/bake-action@v3.0.0 from docker/bake-action@v2.3.0 my build breaks, because I am exporting the image and export does not support provenance metadata. Setting provenance: false fixes the build.

This should either be marked clearly as breaking change in the v3 release or the default should changed to provenance: false.

Steps to reproduce this issue

  1. Use the default docker/bake-action@v3 and set *.output=type=docker,dest=/tmp/image.tar

Expected behaviour

Build works without error and docker image gets exported

Actual behaviour

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

Configuration

name: Docker

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]
  merge_group:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
  image:
    name: Build image ${{ matrix.target }}
    runs-on: ubuntu-latest
    strategy:
      matrix:
        target: [ web, worker, legacy-importer, database-migration ]
    steps:
    - uses: actions/checkout@v3
    - name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v2
    - name: Build the Docker image
      uses: docker/bake-action@v3.0.0
      with:
        files: |
          ./docker-compose.yml
          ./docker-compose.importer.yml
        targets: ${{ matrix.target }}
        set: |
          *.output=type=docker,dest=/tmp/image-${{ matrix.target }}.tar
          *.cache-from=type=gha,scope=build-${{ matrix.target }}
          *.cache-to=type=gha,scope=build-${{ matrix.target }},mode=max
    - uses: actions/upload-artifact@v3
      with:
        name: docker-image-${{ matrix.target }}
        path: /tmp/image-${{ matrix.target }}.tar

Logs

logs_377.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions