Update repo2docker.yaml #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build jupyterhub image | |
on: | |
workflow_dispatch: null | |
workflow_run: | |
workflows: [update conda lockfile] | |
types: | |
- completed | |
push: | |
branch: | |
- main | |
paths: | |
- .github/workflows/repo2docker.yaml | |
- binder/apt.txt | |
- binder/environment.yml | |
- binder/start | |
- binder/appendix | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
if: ${{ github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout files in repo | |
uses: actions/checkout@main | |
- name: update jupyter dependencies with repo2docker | |
uses: jupyterhub/repo2docker-action@master | |
with: | |
DOCKER_USERNAME: ${{github.actor}} | |
DOCKER_PASSWORD: ${{secrets.GITHUB_TOKEN}} | |
DOCKER_REGISTRY: ghcr.io | |
IMAGE_NAME: nmfs-opensci/hub-image-template | |
APPENDIX_FILE: binder/appendix | |
# Next line is mandatory for a JupyterHub deployment since default is ${HOME} | |
# and that is wiped out if there is a persistent home directory | |
REPO_DIR: /srv/repo |