metadata-action icon indicating copy to clipboard operation
metadata-action copied to clipboard

Feature request: git submodule context

Open pl4nty opened this issue 2 years ago • 1 comments

I build several git submodules in a monorepo. It would be helpful to use the submodule git context for generating metadata, instead of the monorepo's context. A context-path option might work, or assuming context is a git path if it isn't git or workflow.

pl4nty avatar Jul 08 '23 13:07 pl4nty

I think we could add a separator to the git context following by the path you want to use. Something like:

      -
        name: Docker meta
        id: meta
        uses: docker/metadata-action@v4
        with:
          context: "git:foo"

Where foo is a submodule.

But then GitHub metadata attached to the Git context would be quite wrong imo so I'm not sure.

crazy-max avatar Jul 08 '23 18:07 crazy-max