Sort entries when reusing GitHub workflows

This commit is contained in:
Ayaz Salikhov
2022-12-10 22:00:35 +04:00
parent 9d45f82516
commit a4f53d1b5c

View File

@@ -71,12 +71,12 @@ concurrency:
jobs: jobs:
aarch64-foundation: aarch64-foundation:
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
if: github.repository == 'jupyter/docker-stacks'
with: with:
parentImage: "" parentImage: ""
image: docker-stacks-foundation image: docker-stacks-foundation
platform: aarch64 platform: aarch64
runsOn: ARM64 runsOn: ARM64
if: github.repository == 'jupyter/docker-stacks'
x86_64-foundation: x86_64-foundation:
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
@@ -87,163 +87,155 @@ jobs:
runsOn: ubuntu-latest runsOn: ubuntu-latest
aarch64-base: aarch64-base:
needs: [aarch64-foundation]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
if: github.repository == 'jupyter/docker-stacks'
with: with:
parentImage: docker-stacks-foundation parentImage: docker-stacks-foundation
image: base-notebook image: base-notebook
platform: aarch64 platform: aarch64
runsOn: ARM64 runsOn: ARM64
needs: [aarch64-foundation]
if: github.repository == 'jupyter/docker-stacks'
x86_64-base: x86_64-base:
needs: [x86_64-foundation]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
with: with:
parentImage: docker-stacks-foundation parentImage: docker-stacks-foundation
image: base-notebook image: base-notebook
platform: x86_64 platform: x86_64
runsOn: ubuntu-latest runsOn: ubuntu-latest
needs: [x86_64-foundation]
aarch64-minimal: aarch64-minimal:
needs: [aarch64-base]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
if: github.repository == 'jupyter/docker-stacks'
with: with:
parentImage: base-notebook parentImage: base-notebook
image: minimal-notebook image: minimal-notebook
platform: aarch64 platform: aarch64
runsOn: ARM64 runsOn: ARM64
needs: [aarch64-base]
if: github.repository == 'jupyter/docker-stacks'
x86_64-minimal: x86_64-minimal:
needs: [x86_64-base]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
with: with:
parentImage: base-notebook parentImage: base-notebook
image: minimal-notebook image: minimal-notebook
platform: x86_64 platform: x86_64
runsOn: ubuntu-latest runsOn: ubuntu-latest
needs: [x86_64-base]
aarch64-scipy: aarch64-scipy:
needs: [aarch64-minimal]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
if: github.repository == 'jupyter/docker-stacks'
with: with:
parentImage: minimal-notebook parentImage: minimal-notebook
image: scipy-notebook image: scipy-notebook
platform: aarch64 platform: aarch64
runsOn: ARM64 runsOn: ARM64
needs: [aarch64-minimal]
if: github.repository == 'jupyter/docker-stacks'
x86_64-scipy: x86_64-scipy:
needs: [x86_64-minimal]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
with: with:
parentImage: minimal-notebook parentImage: minimal-notebook
image: scipy-notebook image: scipy-notebook
platform: x86_64 platform: x86_64
runsOn: ubuntu-latest runsOn: ubuntu-latest
needs: [x86_64-minimal]
aarch64-r: aarch64-r:
needs: [aarch64-minimal]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
if: github.repository == 'jupyter/docker-stacks'
with: with:
parentImage: minimal-notebook parentImage: minimal-notebook
image: r-notebook image: r-notebook
platform: aarch64 platform: aarch64
runsOn: ARM64 runsOn: ARM64
needs: [aarch64-minimal]
if: github.repository == 'jupyter/docker-stacks'
x86_64-r: x86_64-r:
needs: [x86_64-minimal]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
with: with:
parentImage: minimal-notebook parentImage: minimal-notebook
image: r-notebook image: r-notebook
platform: x86_64 platform: x86_64
runsOn: ubuntu-latest runsOn: ubuntu-latest
needs: [x86_64-minimal]
x86_64-tensorflow: x86_64-tensorflow:
needs: [x86_64-scipy]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
with: with:
parentImage: scipy-notebook parentImage: scipy-notebook
image: tensorflow-notebook image: tensorflow-notebook
platform: x86_64 platform: x86_64
runsOn: ubuntu-latest runsOn: ubuntu-latest
needs: [x86_64-scipy]
aarch64-datascience: aarch64-datascience:
needs: [aarch64-scipy]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
if: github.repository == 'jupyter/docker-stacks'
with: with:
parentImage: scipy-notebook parentImage: scipy-notebook
image: datascience-notebook image: datascience-notebook
platform: aarch64 platform: aarch64
runsOn: ARM64 runsOn: ARM64
needs: [aarch64-scipy]
if: github.repository == 'jupyter/docker-stacks'
x86_64-datascience: x86_64-datascience:
needs: [x86_64-scipy]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
with: with:
parentImage: scipy-notebook parentImage: scipy-notebook
image: datascience-notebook image: datascience-notebook
platform: x86_64 platform: x86_64
runsOn: ubuntu-latest runsOn: ubuntu-latest
needs: [x86_64-scipy]
aarch64-pyspark: aarch64-pyspark:
needs: [aarch64-scipy]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
if: github.repository == 'jupyter/docker-stacks'
with: with:
parentImage: scipy-notebook parentImage: scipy-notebook
image: pyspark-notebook image: pyspark-notebook
platform: aarch64 platform: aarch64
runsOn: ARM64 runsOn: ARM64
needs: [aarch64-scipy]
if: github.repository == 'jupyter/docker-stacks'
x86_64-pyspark: x86_64-pyspark:
needs: [x86_64-scipy]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
with: with:
parentImage: scipy-notebook parentImage: scipy-notebook
image: pyspark-notebook image: pyspark-notebook
platform: x86_64 platform: x86_64
runsOn: ubuntu-latest runsOn: ubuntu-latest
needs: [x86_64-scipy]
aarch64-all-spark: aarch64-all-spark:
needs: [aarch64-pyspark]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
if: github.repository == 'jupyter/docker-stacks'
with: with:
parentImage: pyspark-notebook parentImage: pyspark-notebook
image: all-spark-notebook image: all-spark-notebook
platform: aarch64 platform: aarch64
runsOn: ARM64 runsOn: ARM64
needs: [aarch64-pyspark]
if: github.repository == 'jupyter/docker-stacks'
x86_64-all-spark: x86_64-all-spark:
needs: [x86_64-pyspark]
uses: ./.github/workflows/docker-build-test-upload.yml uses: ./.github/workflows/docker-build-test-upload.yml
with: with:
parentImage: pyspark-notebook parentImage: pyspark-notebook
image: all-spark-notebook image: all-spark-notebook
platform: x86_64 platform: x86_64
runsOn: ubuntu-latest runsOn: ubuntu-latest
needs: [x86_64-pyspark]
aarch64-images-tag-push: aarch64-images-tag-push:
if: github.repository == 'jupyter/docker-stacks' uses: ./.github/workflows/docker-tag-manifest-push.yml
with:
platform: aarch64
image: ${{ matrix.image }}
secrets: secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
needs:
[
aarch64-foundation,
aarch64-base,
aarch64-minimal,
aarch64-scipy,
aarch64-r,
aarch64-datascience,
aarch64-pyspark,
aarch64-all-spark,
]
strategy: strategy:
matrix: matrix:
image: image:
@@ -257,15 +249,41 @@ jobs:
pyspark-notebook, pyspark-notebook,
all-spark-notebook, all-spark-notebook,
] ]
uses: ./.github/workflows/docker-tag-manifest-push.yml needs:
with: [
platform: aarch64 aarch64-foundation,
image: ${{ matrix.image }} aarch64-base,
aarch64-minimal,
aarch64-scipy,
aarch64-r,
aarch64-datascience,
aarch64-pyspark,
aarch64-all-spark,
]
if: github.repository == 'jupyter/docker-stacks'
x86_64-images-tag-push: x86_64-images-tag-push:
uses: ./.github/workflows/docker-tag-manifest-push.yml
with:
platform: x86_64
image: ${{ matrix.image }}
secrets: secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
strategy:
matrix:
image:
[
docker-stacks-foundation,
base-notebook,
minimal-notebook,
scipy-notebook,
r-notebook,
tensorflow-notebook,
datascience-notebook,
pyspark-notebook,
all-spark-notebook,
]
needs: needs:
[ [
x86_64-foundation, x86_64-foundation,
@@ -278,52 +296,34 @@ jobs:
x86_64-pyspark, x86_64-pyspark,
x86_64-all-spark, x86_64-all-spark,
] ]
strategy:
matrix:
image:
[
docker-stacks-foundation,
base-notebook,
minimal-notebook,
scipy-notebook,
r-notebook,
tensorflow-notebook,
datascience-notebook,
pyspark-notebook,
all-spark-notebook,
]
uses: ./.github/workflows/docker-tag-manifest-push.yml
with:
platform: x86_64
image: ${{ matrix.image }}
merge-tags: merge-tags:
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
strategy:
matrix:
image:
[
docker-stacks-foundation,
base-notebook,
minimal-notebook,
scipy-notebook,
r-notebook,
tensorflow-notebook,
datascience-notebook,
pyspark-notebook,
all-spark-notebook,
]
uses: ./.github/workflows/docker-merge-tags.yml uses: ./.github/workflows/docker-merge-tags.yml
with: with:
image: ${{ matrix.image }} image: ${{ matrix.image }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
strategy:
matrix:
image:
[
docker-stacks-foundation,
base-notebook,
minimal-notebook,
scipy-notebook,
r-notebook,
tensorflow-notebook,
datascience-notebook,
pyspark-notebook,
all-spark-notebook,
]
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
if: github.repository == 'jupyter/docker-stacks' if: github.repository == 'jupyter/docker-stacks'
wiki-update: wiki-update:
uses: ./.github/workflows/docker-wiki-update.yml
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
if: github.repository == 'jupyter/docker-stacks'
permissions: permissions:
contents: write contents: write
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
uses: ./.github/workflows/docker-wiki-update.yml
if: github.repository == 'jupyter/docker-stacks'