I have a Julia-based repository that uses some notebooks, with the documentation pointing to their mybinder/ instance.
The problem is that the first user that clicks on them after a commit will have to wait a while.
I am hence trying to automatise the building of the mybinder image.
I set the following on .github/workflow/binder.yaml:
name: Binder
on: [push]
jobs:
Create-Binder-Badge:
runs-on: ubuntu-latest
steps:
- name: cache binder build on mybinder.org
uses: machine-learning-apps/repo2docker-action@0.2
with:
NO_PUSH: true
MYBINDERORG_TAG: ${{ github.event.ref }} # This builds the container on mybinder.org with the branch that was pushed on.
https://github.com/sylvaticus/BetaML.jl/runs/902873331#step:3:35 : jupyter-repo2docker: error: argument --image-name: 'sylvaticus/BetaML.jl:cde0f752c685' is not a valid docker image name. Image namemust start with an alphanumeric character andcan then use _ . or - in addition to alphanumeric.
The image name is invalid, as shown by trying docker tag locally:
$ docker tag busybox sylvaticus/BetaML.jl:cde0f752c685
Error parsing reference: "sylvaticus/BetaML.jl:cde0f752c685" is not a valid repository/tag: invalid reference format: repository name must be lowercase
Error parsing reference: "sylvaticus/BetaML.jl:cde0f752c685" is not a valid repository/tag: invalid reference format: repository name must be lowercase
You could try overriding the image name using IMAGE_NAME:
name: Binder
on: push
jobs:
Create-MyBinderOrg-Cache:
runs-on: ubuntu-latest
steps:
- name: cache binder build on mybinder.org
uses: jupyterhub/repo2docker-action@master
with:
NO_PUSH: true
MYBINDERORG_TAG: ${{ github.event.ref }} # This builds the container on mybinder.org with the branch that was pushed on.
IMAGE_NAME: sylvaticus/betaml