2020-10-01 03:47:31 +00:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
2020-10-01 03:50:53 +00:00
|
|
|
name: Docker Build (slim)
|
2020-10-01 03:47:31 +00:00
|
|
|
|
|
|
|
# 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-slim:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Generate Dockerfile
|
|
|
|
run: ./generate-Dockerfile.sh --slim
|
|
|
|
|
2020-10-01 03:50:14 +00:00
|
|
|
- name: Build Image
|
2020-10-01 03:47:31 +00:00
|
|
|
run: docker build -t gpu-jupyter .build/ # will take a while
|
|
|
|
|
2020-10-01 03:50:14 +00:00
|
|
|
- name: Quickstart Entrypoint Script
|
2020-10-01 03:47:31 +00:00
|
|
|
run: ./start-local.sh -p 8848
|