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

Fix: Build MyBinder cache properly #64

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .binder/postBuild
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
jupyter labextension install jupyterlab-plotly
pip install neurots neurom[plotly] diameter-synthesis>=0.4
2 changes: 2 additions & 0 deletions .binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
neurom[plotly]
neurots
2 changes: 1 addition & 1 deletion .binder/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.8
python-3.10
18 changes: 12 additions & 6 deletions .github/workflows/my_binder-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Trigger MyBinder build

on:
pull_request: # TODO: REMOVE THIS BEFORE MERGING
push:
branches:
- 'main'
Expand All @@ -11,11 +12,16 @@ jobs:
trigger-binder-build:
name: Launch the build of the docker image used by MyBinder
runs-on: ubuntu-latest
continue-on-error: true
continue-on-error: false
steps:
- uses: s-weigand/trigger-mybinder-build@v1
- name: checkout files in repo
uses: actions/checkout@v3

- name: update jupyter dependencies with repo2docker
uses: jupyterhub/repo2docker-action@master
with:
target-repo: BlueBrain/NeuroTS
service-name: gh
target-state: ${{github.ref_name}}
debug: true
DOCKER_USERNAME: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASS }}
IMAGE_NAME: "bluebrain/neurots-mybinder"
# MYBINDERORG_TAG: ${{ github.event.pull_request.head.ref }} # This builds the container on mybinder.org with the branch that was pushed on.
MYBINDERORG_TAG: ${{ github.event.ref }} # This builds the container on mybinder.org with the branch that was pushed on.