Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Q: How I can get repository, tags and digest from the target by name? #329

Closed
farcop opened this issue Aug 11, 2023 · 1 comment
Closed

Comments

@farcop
Copy link

farcop commented Aug 11, 2023

I am trying to find the way to get repository, tags and digest from the target by target name from oci_push targets that are scattered across my workspace.

For this with rules_docker I used provider PushInfo just like this:

for d in ctx.attr.deps:
        if PushInfo in d:
            pi = d[PushInfo]
            input_files.append(pi.digest)
            image = pi.registry
            if image != "": image += "/"
            image += pi.repository + ":" + pi.tag

Is it possible to do something like this with rules_oci ?

@farcop
Copy link
Author

farcop commented Aug 11, 2023

It must be very close to #60

@bazel-contrib bazel-contrib locked and limited conversation to collaborators Aug 14, 2023
@thesayyn thesayyn converted this issue into discussion #330 Aug 14, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant