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 — V6 broke interaction with docker/metadata-action · Issue #287 · docker/bake-action

V6 broke interaction with docker/metadata-action #287

New issue
Copy link
New issue
Copy link
Closed
Closed
V6 broke interaction with docker/metadata-action#287
Copy link
Labels
status/triage

Description

@davhdavh
davhdavh
opened on Jan 20, 2025
Issue body actions

Contributing guidelines

  • I've read the contributing guidelines and wholeheartedly agree

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

existing build scripts using docker/metadata-action are failing with v6 due to confusion about where the files are located

Expected behaviour

build success

Actual behaviour

ERROR: failed to solve: lstat /actions-runner/_work/_temp/docker-actions-toolkit-YZDiwT/docker-metadata-action-bake.json: no such file or directory

Repository URL

No response

Workflow run URL

No response

YAML workflow

- name: Docker meta
      id: meta-yyy
      uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5
      with:
        images: |
          ${{ secrets.DOCKER_USERNAME }}/xxx
        flavor: |
          latest=false
          prefix=yyy-
        tags: |
          type=raw,value=${{ github.run_number }}
        labels: |
          org.opencontainers.image.title=xxx
          org.opencontainers.image.description=xxx
          org.opencontainers.image.vendor=xxx
        bake-target: yyy-tags

    - name: Build
      uses: docker/bake-action@60f5d53310314dbf8c33f0c8a01042536f2f6c36 # v6
      with:
        files: |
          ./docker-bake.json
          ${{ steps.meta-yyy.outputs.bake-file }}
        targets: default
        push: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate') }}
        pull: true #always pull latest version of base images of whatever we are building

Workflow logs

No response

BuildKit logs


Additional info

No response

Activity

  1. davhdavh
    added
    status/triage
    on Jan 20, 2025
  2. crazy-max commented on Jan 20, 2025

    @crazy-max
    crazy-max
    on Jan 20, 2025
    Member
    More actions

    As v6 is now using Git context by default (https://github.com/docker/bake-action/releases/tag/v6.0.0), it needs some changes in the metadata-action step: https://github.com/docker/metadata-action?tab=readme-ov-file#bake-definition

    You need to use the local bake file by specifying the cwd:// prefix when building with a git context, otherwise it will try to look at this file within the git repo.

    In your case:

        - name: Build
          uses: docker/bake-action@60f5d53310314dbf8c33f0c8a01042536f2f6c36 # v6
          with:
            files: |
              ./docker-bake.json
              cwd://${{ steps.meta-yyy.outputs.bake-file }}
            targets: default
            push: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate') }}
            pull: true #always pull latest version of base images of whatever we are building

    More info: https://docs.docker.com/build/bake/remote-definition/#combine-local-and-remote-bake-definitions

    I will update the release notes.

  3. davhdavh commented on Jan 20, 2025

    @davhdavh
    davhdavh
    on Jan 20, 2025
    Author
    More actions

    Thanks that work...

  4. davhdavh
    closed this as completedon Jan 20, 2025
  5. sinlov
    added a commit that references this issue on Feb 3, 2025

    build(action): update docker bake config file path reference

    5a267bc
  6. tyler-lloyd
    added 2 commits that reference this issue on Jul 7, 2025

    fix: use `cwd://` prefix

    24a9cbc

    fix: use `cwd://` prefix for 6.0.0 compat

    8d44fae
  7. Mynacol
    added 2 commits that reference this issue on Oct 31, 2025

    CI: Fix Docker Build action

    824728c

    CI: Fix Docker Build action

    eba86d2
  8. dvikan
    added a commit that references this issue on Mar 26, 2026

    CI: Fix Docker Build action

    da72861
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

    status/triage

    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.