Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: git submodule context #310

Open
pl4nty opened this issue Jul 8, 2023 · 1 comment
Open

Feature request: git submodule context #310

pl4nty opened this issue Jul 8, 2023 · 1 comment

Comments

@pl4nty
Copy link

pl4nty commented Jul 8, 2023

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.

@crazy-max
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants