pangeo-gallery / default-binder

Default binder environment for pangeo gallery.
5 stars 5 forks source link

Added gh-action to update binder #1

Closed TomAugspurger closed 3 years ago

TomAugspurger commented 4 years ago

This is stolen from dask/dask-docker. Every night we check for an update to the pangeo-notebook conda-forge package. If there's an update, a PR is made to this repository bumping the versions.

https://github.com/dask/dask-docker/pull/90 has an example for dask-docker.

cc @scottyhq, since I'm guessing this will be useful to you.

rabernat commented 4 years ago

You could also use repository dispatch for this, which would eliminate the need for a crontab.

scottyhq commented 4 years ago

I experimented a bit with repository dispatch and think it is a solution here. But now that github has dependabot built in, an alternative is to change

https://github.com/pangeo-gallery/default-binder/blob/b379cd59c8ce4cf4e43af07f685351fd7883257d/binder/Dockerfile#L1

to pangeo/base-image:2020.07.03

Add the dependabot config (.github/dependabot.yml) to automatically create PRs:

version: 2
updates:
  - package-ecosystem: "docker"
    directory: "binder/"
    schedule:
      interval: "daily"

optionall add a workflow that automatically merges PRs from dependabot https://medium.com/@toufik.airane/automerge-github-dependabot-alerts-with-github-actions-7cd6f5763750

TomAugspurger commented 3 years ago

In theory https://github.com/pangeo-gallery/default-binder/pull/9 is handling this. We'll see next time we tag a pangeo-docker image.