Skip to content

Commit a4f53d1

Browse files
committed
Sort entries when reusing GitHub workflows
1 parent 9d45f82 commit a4f53d1

File tree

1 file changed

+58
-58
lines changed

1 file changed

+58
-58
lines changed

.github/workflows/docker.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ concurrency:
7171
jobs:
7272
aarch64-foundation:
7373
uses: ./.github/workflows/docker-build-test-upload.yml
74-
if: github.repository == 'jupyter/docker-stacks'
7574
with:
7675
parentImage: ""
7776
image: docker-stacks-foundation
7877
platform: aarch64
7978
runsOn: ARM64
79+
if: github.repository == 'jupyter/docker-stacks'
8080

8181
x86_64-foundation:
8282
uses: ./.github/workflows/docker-build-test-upload.yml
@@ -87,152 +87,168 @@ jobs:
8787
runsOn: ubuntu-latest
8888

8989
aarch64-base:
90-
needs: [aarch64-foundation]
9190
uses: ./.github/workflows/docker-build-test-upload.yml
92-
if: github.repository == 'jupyter/docker-stacks'
9391
with:
9492
parentImage: docker-stacks-foundation
9593
image: base-notebook
9694
platform: aarch64
9795
runsOn: ARM64
96+
needs: [aarch64-foundation]
97+
if: github.repository == 'jupyter/docker-stacks'
9898

9999
x86_64-base:
100-
needs: [x86_64-foundation]
101100
uses: ./.github/workflows/docker-build-test-upload.yml
102101
with:
103102
parentImage: docker-stacks-foundation
104103
image: base-notebook
105104
platform: x86_64
106105
runsOn: ubuntu-latest
106+
needs: [x86_64-foundation]
107107

108108
aarch64-minimal:
109-
needs: [aarch64-base]
110109
uses: ./.github/workflows/docker-build-test-upload.yml
111-
if: github.repository == 'jupyter/docker-stacks'
112110
with:
113111
parentImage: base-notebook
114112
image: minimal-notebook
115113
platform: aarch64
116114
runsOn: ARM64
115+
needs: [aarch64-base]
116+
if: github.repository == 'jupyter/docker-stacks'
117117

118118
x86_64-minimal:
119-
needs: [x86_64-base]
120119
uses: ./.github/workflows/docker-build-test-upload.yml
121120
with:
122121
parentImage: base-notebook
123122
image: minimal-notebook
124123
platform: x86_64
125124
runsOn: ubuntu-latest
125+
needs: [x86_64-base]
126126

127127
aarch64-scipy:
128-
needs: [aarch64-minimal]
129128
uses: ./.github/workflows/docker-build-test-upload.yml
130-
if: github.repository == 'jupyter/docker-stacks'
131129
with:
132130
parentImage: minimal-notebook
133131
image: scipy-notebook
134132
platform: aarch64
135133
runsOn: ARM64
134+
needs: [aarch64-minimal]
135+
if: github.repository == 'jupyter/docker-stacks'
136136

137137
x86_64-scipy:
138-
needs: [x86_64-minimal]
139138
uses: ./.github/workflows/docker-build-test-upload.yml
140139
with:
141140
parentImage: minimal-notebook
142141
image: scipy-notebook
143142
platform: x86_64
144143
runsOn: ubuntu-latest
144+
needs: [x86_64-minimal]
145145

146146
aarch64-r:
147-
needs: [aarch64-minimal]
148147
uses: ./.github/workflows/docker-build-test-upload.yml
149-
if: github.repository == 'jupyter/docker-stacks'
150148
with:
151149
parentImage: minimal-notebook
152150
image: r-notebook
153151
platform: aarch64
154152
runsOn: ARM64
153+
needs: [aarch64-minimal]
154+
if: github.repository == 'jupyter/docker-stacks'
155155

156156
x86_64-r:
157-
needs: [x86_64-minimal]
158157
uses: ./.github/workflows/docker-build-test-upload.yml
159158
with:
160159
parentImage: minimal-notebook
161160
image: r-notebook
162161
platform: x86_64
163162
runsOn: ubuntu-latest
163+
needs: [x86_64-minimal]
164164

165165
x86_64-tensorflow:
166-
needs: [x86_64-scipy]
167166
uses: ./.github/workflows/docker-build-test-upload.yml
168167
with:
169168
parentImage: scipy-notebook
170169
image: tensorflow-notebook
171170
platform: x86_64
172171
runsOn: ubuntu-latest
172+
needs: [x86_64-scipy]
173173

174174
aarch64-datascience:
175-
needs: [aarch64-scipy]
176175
uses: ./.github/workflows/docker-build-test-upload.yml
177-
if: github.repository == 'jupyter/docker-stacks'
178176
with:
179177
parentImage: scipy-notebook
180178
image: datascience-notebook
181179
platform: aarch64
182180
runsOn: ARM64
181+
needs: [aarch64-scipy]
182+
if: github.repository == 'jupyter/docker-stacks'
183183

184184
x86_64-datascience:
185-
needs: [x86_64-scipy]
186185
uses: ./.github/workflows/docker-build-test-upload.yml
187186
with:
188187
parentImage: scipy-notebook
189188
image: datascience-notebook
190189
platform: x86_64
191190
runsOn: ubuntu-latest
191+
needs: [x86_64-scipy]
192192

193193
aarch64-pyspark:
194-
needs: [aarch64-scipy]
195194
uses: ./.github/workflows/docker-build-test-upload.yml
196-
if: github.repository == 'jupyter/docker-stacks'
197195
with:
198196
parentImage: scipy-notebook
199197
image: pyspark-notebook
200198
platform: aarch64
201199
runsOn: ARM64
200+
needs: [aarch64-scipy]
201+
if: github.repository == 'jupyter/docker-stacks'
202202

203203
x86_64-pyspark:
204-
needs: [x86_64-scipy]
205204
uses: ./.github/workflows/docker-build-test-upload.yml
206205
with:
207206
parentImage: scipy-notebook
208207
image: pyspark-notebook
209208
platform: x86_64
210209
runsOn: ubuntu-latest
210+
needs: [x86_64-scipy]
211211

212212
aarch64-all-spark:
213-
needs: [aarch64-pyspark]
214213
uses: ./.github/workflows/docker-build-test-upload.yml
215-
if: github.repository == 'jupyter/docker-stacks'
216214
with:
217215
parentImage: pyspark-notebook
218216
image: all-spark-notebook
219217
platform: aarch64
220218
runsOn: ARM64
219+
needs: [aarch64-pyspark]
220+
if: github.repository == 'jupyter/docker-stacks'
221221

222222
x86_64-all-spark:
223-
needs: [x86_64-pyspark]
224223
uses: ./.github/workflows/docker-build-test-upload.yml
225224
with:
226225
parentImage: pyspark-notebook
227226
image: all-spark-notebook
228227
platform: x86_64
229228
runsOn: ubuntu-latest
229+
needs: [x86_64-pyspark]
230230

231231
aarch64-images-tag-push:
232-
if: github.repository == 'jupyter/docker-stacks'
232+
uses: ./.github/workflows/docker-tag-manifest-push.yml
233+
with:
234+
platform: aarch64
235+
image: ${{ matrix.image }}
233236
secrets:
234237
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
235238
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
239+
strategy:
240+
matrix:
241+
image:
242+
[
243+
docker-stacks-foundation,
244+
base-notebook,
245+
minimal-notebook,
246+
scipy-notebook,
247+
r-notebook,
248+
datascience-notebook,
249+
pyspark-notebook,
250+
all-spark-notebook,
251+
]
236252
needs:
237253
[
238254
aarch64-foundation,
@@ -244,6 +260,16 @@ jobs:
244260
aarch64-pyspark,
245261
aarch64-all-spark,
246262
]
263+
if: github.repository == 'jupyter/docker-stacks'
264+
265+
x86_64-images-tag-push:
266+
uses: ./.github/workflows/docker-tag-manifest-push.yml
267+
with:
268+
platform: x86_64
269+
image: ${{ matrix.image }}
270+
secrets:
271+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
272+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
247273
strategy:
248274
matrix:
249275
image:
@@ -253,19 +279,11 @@ jobs:
253279
minimal-notebook,
254280
scipy-notebook,
255281
r-notebook,
282+
tensorflow-notebook,
256283
datascience-notebook,
257284
pyspark-notebook,
258285
all-spark-notebook,
259286
]
260-
uses: ./.github/workflows/docker-tag-manifest-push.yml
261-
with:
262-
platform: aarch64
263-
image: ${{ matrix.image }}
264-
265-
x86_64-images-tag-push:
266-
secrets:
267-
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
268-
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
269287
needs:
270288
[
271289
x86_64-foundation,
@@ -278,30 +296,14 @@ jobs:
278296
x86_64-pyspark,
279297
x86_64-all-spark,
280298
]
281-
strategy:
282-
matrix:
283-
image:
284-
[
285-
docker-stacks-foundation,
286-
base-notebook,
287-
minimal-notebook,
288-
scipy-notebook,
289-
r-notebook,
290-
tensorflow-notebook,
291-
datascience-notebook,
292-
pyspark-notebook,
293-
all-spark-notebook,
294-
]
295-
uses: ./.github/workflows/docker-tag-manifest-push.yml
296-
with:
297-
platform: x86_64
298-
image: ${{ matrix.image }}
299299

300300
merge-tags:
301+
uses: ./.github/workflows/docker-merge-tags.yml
302+
with:
303+
image: ${{ matrix.image }}
301304
secrets:
302305
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
303306
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
304-
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
305307
strategy:
306308
matrix:
307309
image:
@@ -316,14 +318,12 @@ jobs:
316318
pyspark-notebook,
317319
all-spark-notebook,
318320
]
319-
uses: ./.github/workflows/docker-merge-tags.yml
320-
with:
321-
image: ${{ matrix.image }}
321+
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
322322
if: github.repository == 'jupyter/docker-stacks'
323323

324324
wiki-update:
325-
permissions:
326-
contents: write
327-
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
328325
uses: ./.github/workflows/docker-wiki-update.yml
326+
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
329327
if: github.repository == 'jupyter/docker-stacks'
328+
permissions:
329+
contents: write

0 commit comments

Comments
 (0)