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

How to use it with private registry? #290

Open
sairus7 opened this issue Oct 18, 2023 · 3 comments
Open

How to use it with private registry? #290

sairus7 opened this issue Oct 18, 2023 · 3 comments

Comments

@sairus7
Copy link

sairus7 commented Oct 18, 2023

I have a github org with private registry and I'm registering new package versions manually with LocalRegistry:

using LocalRegistry
register(package)

Now I'm lacking automatic git tag and github releases bound to each new version.

So I've added TagBot to my package but it didn't work. Seems like TagBot relies on Registrator github app. Should I enable it for my private registry and switch to it to register new versions?

@terasakisatoshi
Copy link

Hi, @sairus7

This section Custom Registries might be helpful?

name: TagBot
...
...<Omission >
...
jobs:
  TagBot:
    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
    runs-on: ubuntu-latest
    steps:
      - uses: JuliaRegistries/TagBot@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          ssh: ${{ secrets.DOCUMENTER_KEY }} # required to add tags
          registry: MyOrg/MyRegistry
          registry_ssh: ${{ secrets.REGISTRY_SSH_KEY }} # required to pull/clone MyOrg/MyRegistry

@sairus7
Copy link
Author

sairus7 commented Oct 29, 2023

Looks like this works only with Registrator GitHub app that should be set up properly: JuliaRegistries/Registrator.jl#421

So for now I'm just using a custom action https://gist.github.com/sairus7/f5e827270dd1789645415e7f2ec84a7e

@terasakisatoshi
Copy link

🤔 It worked in my Organization

FYI I created DOCUMENTER_KEY by following instructions on this link:
#227 (comment)

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