Skip to content

Commit

Permalink
Update build image
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneKras committed Jan 7, 2025
1 parent 093e1b7 commit 828746d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/binder-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,22 @@ jobs:
- name: Install dependencies
run: pip install jupyter-repo2docker nbformat pyyaml

- name: Build Binder image
run: jupyter-repo2docker --no-run --image-name=mybinder.org-image .
- name: Build and Tag Binder image
run: |
TAG="mybinder.org-image:latest"
jupyter-repo2docker \
--no-run \
--image-name=$TAG .
- name: Check Binder build status
if: failure()
run: exit 1
- name: Verify Tagged Binder Image
run: |
TAG="mybinder.org-image:latest"
if docker inspect $TAG; then
echo "Binder image with tag '$TAG' built successfully"
else
echo "Binder image build failed"
exit 1
fi
- name: Add Binder badge
run: |
Expand Down
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies:
- python-dotenv
- pip
- rasterio
- rioxarray
- spatialpandas
- pystac
- typing
Expand All @@ -31,6 +32,6 @@ dependencies:
- geoviews
- geopandas
- colorcet
- stac-geoparquet
- stac-geoparquet
# - pip:
# - coclico

0 comments on commit 828746d

Please sign in to comment.