TagBot icon indicating copy to clipboard operation
TagBot copied to clipboard

How to use it with private registry?

Open sairus7 opened this issue 1 year ago • 3 comments

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?

sairus7 avatar Oct 18 '23 15:10 sairus7

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

terasakisatoshi avatar Oct 29 '23 06:10 terasakisatoshi

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

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

sairus7 avatar Oct 29 '23 21:10 sairus7

🤔 It worked in my Organization

FYI I created DOCUMENTER_KEY by following instructions on this link: https://github.com/JuliaRegistries/TagBot/issues/227#issuecomment-1784011651

terasakisatoshi avatar Oct 29 '23 21:10 terasakisatoshi