-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1002 Bytes
/
repo2docker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: build jupyterhub image
on:
workflow_dispatch: null
workflow_run:
push:
branch:
- main
paths:
- .github/workflows/repo2docker.yaml
- binder/apt.txt
- binder/environment.yml
- binder/start
- binder/appendix
- binder/postBuild
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
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