Skip to content

Commit d60faee

Browse files
authored
Push sandbox image to DockerHub on build
Previously was pushing to mybinder.org which seems to disappear after a few days, hopefully this will make the image permanent and mybinder.org will read from DockerHub at runtime
1 parent cb2b797 commit d60faee

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/binder.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ name: Binder
22
on: [push]
33

44
jobs:
5-
Create-MyBinderOrg-Cache:
5+
binder:
66
runs-on: ubuntu-latest
77
steps:
8-
- name: cache binder build on mybinder.org
8+
- name: Checkout Code
9+
uses: actions/checkout@v2
10+
with:
11+
ref: ${{ github.event.pull_request.head.sha }}
12+
13+
- name: update jupyter dependencies with repo2docker
914
uses: jupyterhub/repo2docker-action@master
1015
with:
11-
NO_PUSH: true
12-
MYBINDERORG_TAG: ${{ github.event.ref }} # This builds the container on mybinder.org with the branch that was pushed on.
16+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
17+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
18+
BINDER_CACHE: true
19+
PUBLIC_REGISTRY_CHECK: true

0 commit comments

Comments
 (0)