Skip to content

Commit 8ce5b81

Browse files
Wizard1209claude
andcommitted
Fix Binder workflow: trigger via mybinder.org dispatcher
The upstream repo2docker-action hardcodes https://gke.mybinder.org/build/... which has been decommissioned and now serves a self-signed Kubernetes ingress cert, breaking the workflow with SSL errors. Replace the action with a direct curl to https://mybinder.org/build/... — the federation dispatcher routes to live members (2i2c/gesis/bids). SSE Accept header is required by the new dispatcher. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 639ebb3 commit 8ce5b81

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/binder.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ jobs:
99
name: Build
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: cache binder build on mybinder.org
13-
uses: machine-learning-apps/repo2docker-action@master
14-
with:
15-
NO_PUSH: true
16-
MYBINDERORG_TAG: ${{ github.event.ref }}
12+
- name: Trigger mybinder.org cache prewarm
13+
run: |
14+
set +e
15+
curl -L -H 'Accept: text/event-stream' \
16+
--connect-timeout 20 --max-time 900 \
17+
"https://mybinder.org/build/gh/${GITHUB_REPOSITORY}/${GITHUB_REF_NAME}"
18+
rc=$?
19+
# 0 = stream finished, 28 = --max-time hit while build still running.
20+
# Both mean the build was accepted; anything else is a real failure.
21+
if [ "$rc" -eq 0 ] || [ "$rc" -eq 28 ]; then exit 0; else exit "$rc"; fi

0 commit comments

Comments
 (0)