I have a bunch of private git repos containing jupyter notebooks, and I am looking for a way to autodeploy those notebooks in Jupyter Lab.
I was thus thinking of creating a CI/CD pipeline who would call the /build endpoint of a locally hosted binder after each git commit.
With the build triggered by a CI/CD pipeline I would have the advantage of having always up to date container images + the ready to use binder badge for end users.
For this to authorize the CI/CD pipeline to call the /build endpoint, since my in-house binder instance has oauth2 authentication enabled.
BinderSpawner:
auth_enabled: true
I have thus two questions:
A) Does this CI/CD calling binder makes sense or should I try something elese ? At least I think I am not the only one who tried that: Problem Triggering Binder Build through API endpoint
Should I consider nbgitpuller as an alternative ?
B) For such a CI / CD pipeline to work againt a binder instance with auth enabled, I would need an API token to call the end point.
I see JupyterHub has Using JupyterHub’s REST API — JupyterHub documentation.
Would such a token work with Binder, since the binder auth is delegated to the jupyter hub auth provider ?