forked from OKDP/jupyterlab-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (74 loc) · 2.45 KB
/
build-test-base.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build, test, and push jupyter base images
on:
workflow_call:
inputs:
python_version:
description: Python version
required: true
type: string
python_dev_tag:
description: Tag to use for latest base images (foundation, minimal, etc)
required: true
type: string
registry:
description: The list of tags space separated values
required: true
type: string
runs-on:
description: GitHub Actions Runner image
required: true
type: string
secrets:
registry_username:
required: true
registry_token:
required: true
defaults:
run:
working-directory: ./docker-stacks
jobs:
docker-stacks-foundation:
uses: ./.github/workflows/docker-build-test-push-latest.yml
with:
parent-image: ""
image: docker-stacks-foundation:${{ inputs.python_dev_tag }}
registry: ${{ inputs.registry }}
build-args:
PYTHON_VERSION=${{ inputs.python_version }}
runs-on: ubuntu-latest
secrets:
registry_username: ${{ secrets.registry_username }}
registry_token: ${{ secrets.registry_token }}
base-notebook:
uses: ./.github/workflows/docker-build-test-push-latest.yml
with:
parent-image: docker-stacks-foundation:${{ inputs.python_dev_tag }}
image: base-notebook:${{ inputs.python_dev_tag }}
registry: ${{ inputs.registry }}
runs-on: ubuntu-latest
secrets:
registry_username: ${{ secrets.registry_username }}
registry_token: ${{ secrets.registry_token }}
needs: [docker-stacks-foundation]
minimal-notebook:
uses: ./.github/workflows/docker-build-test-push-latest.yml
with:
parent-image: base-notebook:${{ inputs.python_dev_tag }}
image: minimal-notebook:${{ inputs.python_dev_tag }}
registry: ${{ inputs.registry }}
runs-on: ubuntu-latest
secrets:
registry_username: ${{ secrets.registry_username }}
registry_token: ${{ secrets.registry_token }}
needs: [base-notebook]
scipy-notebook:
uses: ./.github/workflows/docker-build-test-push-latest.yml
with:
parent-image: minimal-notebook:${{ inputs.python_dev_tag }}
image: scipy-notebook:${{ inputs.python_dev_tag }}
registry: ${{ inputs.registry }}
runs-on: ubuntu-latest
secrets:
registry_username: ${{ secrets.registry_username }}
registry_token: ${{ secrets.registry_token }}
needs: [minimal-notebook]