From f74dfaa2b1ccbe70b7c107399f902ba1228a0a93 Mon Sep 17 00:00:00 2001 From: Michael Pilosov Date: Fri, 10 Jul 2020 13:31:44 -0600 Subject: [PATCH 1/2] add workflow. --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4a8a65c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +# This is a basic workflow to help you get started with Actions + +name: Docker + +# 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: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Use docker to handle dependencies and prepend executables to PATH + - name: Test Quickstart (defaults) + run: | + ./generate-Dockerfile.sh + ./start-local.sh -p 8848 From dd1157ad282855e6394ab2c6779082061ef6e9a9 Mon Sep 17 00:00:00 2001 From: Michael Pilosov Date: Fri, 10 Jul 2020 13:38:25 -0600 Subject: [PATCH 2/2] parallel workflow jobs --- .github/workflows/main.yml | 40 +++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4a8a65c..7ea6e8d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,17 +12,47 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - docker: - # The type of runner that the job will run on + docker-default: runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - # Use docker to handle dependencies and prepend executables to PATH - name: Test Quickstart (defaults) run: | ./generate-Dockerfile.sh ./start-local.sh -p 8848 + + docker-slim: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Test Quickstart (defaults) + run: | + ./generate-Dockerfile.sh --slim + ./start-local.sh -p 8848 + + docker-nods: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Test Quickstart (defaults) + run: | + ./generate-Dockerfile.sh --no-datascience-notebook + ./start-local.sh -p 8848 + + docker-noup: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Test Quickstart (defaults) + run: | + ./generate-Dockerfile.sh --no-useful-packages + ./start-local.sh -p 8848 +