WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Multiple contexts #333

@mikepurvis

Description

@mikepurvis

Description

Hello! I’m new to bake and quite enjoying it. However, as far as I can tell, the bake action doesn’t support multiple contexts.

What I’m trying to do in my Actions workflow is:

  1. Have an initial job that checks out the main repo and prepares a lockfile referencing several other repos.
  2. Pass that lockfile to the next job as an artifact.
  3. In the next job (a multiplatform matrix), run a bake that consumes the lockfile and hopefully avoids creating a new local clone of the main repo.

I can definitely mount a secret into the bake build, but I don’t think I can mount a regular file unless it’s part of the context. Is there a way I can reference the local workspace while still having buildx make its own clone of the main repo?

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