This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
134 lines (128 loc) · 5.59 KB
/
2-image-dependencies.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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
name: Image dependencies
# --- Description ------------------------------------------------------------
# Workflow that manages image dependencies & build order
# ----------------------------------------------------------------------------
on: # yamllint disable-line rule:truthy
workflow_call:
inputs:
python_version:
description: Python version (<major.minor.*>)
required: true
type: string
platforms:
description: Image platform architecture(s)
required: true
type: string
gh_registry:
description: Github registry (ghcr.io/<owner>)
required: true
type: string
# d_registry:
# description: Docker registry (docker.io/<owner>)
# required: true
# type: string
owner:
description: Registry name
required: true
type: string
workflow_dispatch:
inputs:
python_version:
description: Python version (<major.minor.*>)
required: true
type: string
platforms:
description: Image platform architecture(s)
required: true
type: string
gh_registry:
description: Github registry (ghcr.io/<owner>)
required: true
type: string
# d_registry:
# description: Docker registry (docker.io/<owner>)
# required: true
# type: string
owner:
description: Registry name
required: true
type: string
# yamllint disable rule:colons rule:comments.min-spaces-from-content
jobs:
base-env:
# needs: [] # <-- UPDATE ###
# if: success() # <-- UPDATE ###
uses: ./.github/workflows/3-build-test-tag.yaml
with:
source_image: jupyter/minimal-notebook # <-- UPDATE ###
# source_tag: latest # <-- UPDATE ###
# source_digest: '' # <-- UPDATE ###
image_name: base-env # <-- UPDATE ###
python_version: ${{ inputs.python_version }}
platforms: ${{ inputs.platforms }}
gh_registry: ${{ inputs.gh_registry }}
# d_registry: ${{ inputs.d_registry }}
owner: ${{ inputs.owner }}
secrets: inherit
ds-env:
needs: [base-env] # <-- UPDATE ###
if: ${{ needs.base-env.result == 'success' }} # <-- UPDATE ###
uses: ./.github/workflows/3-build-test-tag.yaml
with:
source_image: ghcr.io/ninerealmlabs/base-env # <-- UPDATE ###
source_tag: ${{ needs.base-env.outputs.python_tag }} # <-- UPDATE ###
source_digest: ${{ needs.base-env.outputs.image_digest }} # <-- UPDATE ###
image_name: ds-env # <-- UPDATE ###
python_version: ${{ inputs.python_version }}
platforms: ${{ inputs.platforms }}
gh_registry: ${{ inputs.gh_registry }}
# d_registry: ${{ inputs.d_registry }}
owner: ${{ inputs.owner }}
secrets: inherit
nlp-env:
needs: [ds-env] # <-- UPDATE ###
if: ${{ needs.ds-env.result == 'success' }} # <-- UPDATE ###
uses: ./.github/workflows/3-build-test-tag.yaml
with:
source_image: ghcr.io/ninerealmlabs/ds-env # <-- UPDATE ###
source_tag: ${{ needs.ds-env.outputs.python_tag }} # <-- UPDATE ###
source_digest: ${{ needs.ds-env.outputs.image_digest }} # <-- UPDATE ###
image_name: nlp-env # <-- UPDATE ###
python_version: ${{ inputs.python_version }}
platforms: ${{ inputs.platforms }}
gh_registry: ${{ inputs.gh_registry }}
# d_registry: ${{ inputs.d_registry }}
owner: ${{ inputs.owner }}
secrets: inherit
ts-env:
needs: [ds-env] # <-- UPDATE ###
if: ${{ needs.ds-env.result == 'success' }} # <-- UPDATE ###
uses: ./.github/workflows/3-build-test-tag.yaml
with:
source_image: ghcr.io/ninerealmlabs/ds-env # <-- UPDATE ###
source_tag: ${{ needs.ds-env.outputs.python_tag }} # <-- UPDATE ###
source_digest: ${{ needs.ds-env.outputs.image_digest }} # <-- UPDATE ###
image_name: ts-env # <-- UPDATE ###
python_version: ${{ inputs.python_version }}
platforms: ${{ inputs.platforms }}
gh_registry: ${{ inputs.gh_registry }}
# d_registry: ${{ inputs.d_registry }}
owner: ${{ inputs.owner }}
secrets: inherit
web-env:
needs: [nlp-env] # <-- UPDATE ###
if: ${{ needs.nlp-env.result == 'success' }} # <-- UPDATE ###
uses: ./.github/workflows/3-build-test-tag.yaml
with:
source_image: ghcr.io/ninerealmlabs/nlp-env # <-- UPDATE ###
source_tag: ${{ needs.nlp-env.outputs.python_tag }} # <-- UPDATE ###
source_digest: ${{ needs.nlp-env.outputs.image_digest }} # <-- UPDATE ###
image_name: web-env # <-- UPDATE ###
python_version: ${{ inputs.python_version }}
platforms: ${{ inputs.platforms }}
gh_registry: ${{ inputs.gh_registry }}
# d_registry: ${{ inputs.d_registry }}
owner: ${{ inputs.owner }}
secrets: inherit
# yamllint enable