TagBot
TagBot copied to clipboard
How to use it with private registry?
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?
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
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
🤔 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