GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — v3 breaks build for *.output=type=docker,dest · Issue #131 · docker/bake-action

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

New issue
Copy link
New issue
Copy link
Closed
#132
Closed
v3 breaks build for *.output=type=docker,dest#131
#132
Copy link
Labels
kind/bugSomething isn't working

Description

@darthmaim
darthmaim
opened on Apr 18, 2023
Issue body actions

Behaviour

After updating to docker/[email protected] from docker/[email protected] 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

  • Repository URL (if public): Update docker/bake-action action to v3 GW2Treasures/gw2treasures.com#135
  • Build URL (if public): https://github.com/GW2Treasures/gw2treasures.com/actions/runs/4731151043/jobs/8395743128
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/[email protected]
      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

Activity

  1. crazy-max commented on Apr 18, 2023

    @crazy-max
    crazy-max
    on Apr 18, 2023
    Member
    More actions

    https://github.com/GW2Treasures/gw2treasures.com/actions/runs/4731151043/jobs/8395743128#step:4:110

    /usr/bin/docker buildx bake --file ./docker-compose.yml --file ./docker-compose.importer.yml --set *.output=type=docker,dest=/tmp/image-web.tar --set *.cache-from=type=gha,scope=build-web --set *.cache-to=type=gha,scope=build-web,mode=max --metadata-file /tmp/docker-actions-toolkit-FSRRn6/metadata-file --provenance mode=max,builder-id=https://github.com/GW2Treasures/gw2treasures.com/actions/runs/4731151043 web --print
    

    The provenance flag should not be set when we load to docker. Looks like there is an issue with the docker exporter detection in

    bake-action/src/context.ts

    Line 67 in 4c1169b

    } else if ((await toolkit.buildkit.versionSatisfies(inputs.builder, '>=0.11.0')) && !Bake.hasDockerExporter(bakedef, inputs.load)) {
    .

    Will look at it, thanks for your feedback.

  2. crazy-max
    added
    kind/bugSomething isn't working
    on Apr 18, 2023
  3. crazy-max commented on Apr 18, 2023

    @crazy-max
    crazy-max
    on Apr 18, 2023
    Member
    More actions

    @darthmaim Can you try with crazy-max/docker-bake-action@fix-bake-def?

  4. darthmaim commented on Apr 18, 2023

    @darthmaim
    darthmaim
    on Apr 18, 2023
    ContributorAuthor
    More actions

    I updated my workflow in GW2Treasures/gw2treasures.com#138 and it works with crazy-max/docker-bake-action@fix-bake-def

    Reacted by CrazyMax
  5. crazy-max
    closed this as completedin #132on Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.