-
-
Notifications
You must be signed in to change notification settings - Fork 234
28 lines (21 loc) · 922 Bytes
/
default.yml
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
# This is a basic workflow to help you get started with Actions
name: Docker Build (default)
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master, docker-swarm ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
docker-default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate Dockerfile
run: ./generate-Dockerfile.sh
- name: Build Image
run: docker build -t gpu-jupyter .build/ # will take a while
- name: Quickstart Entrypoint Script
run: docker run -d -it -p 8848:8888 -v $(pwd)/data:/home/jovyan/work -e GRANT_SUDO=yes -e JUPYTER_ENABLE_LAB=yes -e NB_UID="$(id -u)" -e NB_GID="$(id -g)" --user root --restart always --name gpu-jupyter_1 gpu-jupyter