Skip to content

Commit

Permalink
Use jupyter-repo2docker
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiristseng committed Dec 22, 2024
1 parent bd817f0 commit a05f308
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/repo2docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,31 @@ jobs:
end
end
end
- name: Setup Python
uses: actions/setup-python@v5
id: setup-python
with:
python-version: '3.x'
- name: Install Python dependencies
run: |
pip install uv
uv pip install --system -r jupyter-repo2docker
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Remove binder cache file
run: rm binder/Dockerfile || true
- name: Update binder docker image with repo2docker
uses: jupyterhub/repo2docker-action@master
with:
DOCKER_REGISTRY: ghcr.io
DOCKER_USERNAME: ${{ github.repository_owner }}
DOCKER_PASSWORD: ${{ github.token }}
IMAGE_NAME: ${{ github.repository }}
PUBLIC_REGISTRY_CHECK: true
LATEST_TAG_OFF: true
ADDITIONAL_TAG: binder
run: >
jupyter-repo2docker
--image-name ghcr.io/${{ github.repository }}
--label "binder"
--no-run --push
--cache-from ghcr.io/${{ github.repository }}:binder
.
- name: Write binder cache file
run: |
mkdir -p binder
Expand Down

0 comments on commit a05f308

Please sign in to comment.