From a4f53d1b5c2b0538450104d16d2dd7cbb01d1d05 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Sat, 10 Dec 2022 22:00:35 +0400 Subject: [PATCH] Sort entries when reusing GitHub workflows --- .github/workflows/docker.yml | 156 +++++++++++++++++------------------ 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index bad74fca..7117a91f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -71,12 +71,12 @@ concurrency: jobs: aarch64-foundation: uses: ./.github/workflows/docker-build-test-upload.yml - if: github.repository == 'jupyter/docker-stacks' with: parentImage: "" image: docker-stacks-foundation platform: aarch64 runsOn: ARM64 + if: github.repository == 'jupyter/docker-stacks' x86_64-foundation: uses: ./.github/workflows/docker-build-test-upload.yml @@ -87,163 +87,155 @@ jobs: runsOn: ubuntu-latest aarch64-base: - needs: [aarch64-foundation] uses: ./.github/workflows/docker-build-test-upload.yml - if: github.repository == 'jupyter/docker-stacks' with: parentImage: docker-stacks-foundation image: base-notebook platform: aarch64 runsOn: ARM64 + needs: [aarch64-foundation] + if: github.repository == 'jupyter/docker-stacks' x86_64-base: - needs: [x86_64-foundation] uses: ./.github/workflows/docker-build-test-upload.yml with: parentImage: docker-stacks-foundation image: base-notebook platform: x86_64 runsOn: ubuntu-latest + needs: [x86_64-foundation] aarch64-minimal: - needs: [aarch64-base] uses: ./.github/workflows/docker-build-test-upload.yml - if: github.repository == 'jupyter/docker-stacks' with: parentImage: base-notebook image: minimal-notebook platform: aarch64 runsOn: ARM64 + needs: [aarch64-base] + if: github.repository == 'jupyter/docker-stacks' x86_64-minimal: - needs: [x86_64-base] uses: ./.github/workflows/docker-build-test-upload.yml with: parentImage: base-notebook image: minimal-notebook platform: x86_64 runsOn: ubuntu-latest + needs: [x86_64-base] aarch64-scipy: - needs: [aarch64-minimal] uses: ./.github/workflows/docker-build-test-upload.yml - if: github.repository == 'jupyter/docker-stacks' with: parentImage: minimal-notebook image: scipy-notebook platform: aarch64 runsOn: ARM64 + needs: [aarch64-minimal] + if: github.repository == 'jupyter/docker-stacks' x86_64-scipy: - needs: [x86_64-minimal] uses: ./.github/workflows/docker-build-test-upload.yml with: parentImage: minimal-notebook image: scipy-notebook platform: x86_64 runsOn: ubuntu-latest + needs: [x86_64-minimal] aarch64-r: - needs: [aarch64-minimal] uses: ./.github/workflows/docker-build-test-upload.yml - if: github.repository == 'jupyter/docker-stacks' with: parentImage: minimal-notebook image: r-notebook platform: aarch64 runsOn: ARM64 + needs: [aarch64-minimal] + if: github.repository == 'jupyter/docker-stacks' x86_64-r: - needs: [x86_64-minimal] uses: ./.github/workflows/docker-build-test-upload.yml with: parentImage: minimal-notebook image: r-notebook platform: x86_64 runsOn: ubuntu-latest + needs: [x86_64-minimal] x86_64-tensorflow: - needs: [x86_64-scipy] uses: ./.github/workflows/docker-build-test-upload.yml with: parentImage: scipy-notebook image: tensorflow-notebook platform: x86_64 runsOn: ubuntu-latest + needs: [x86_64-scipy] aarch64-datascience: - needs: [aarch64-scipy] uses: ./.github/workflows/docker-build-test-upload.yml - if: github.repository == 'jupyter/docker-stacks' with: parentImage: scipy-notebook image: datascience-notebook platform: aarch64 runsOn: ARM64 + needs: [aarch64-scipy] + if: github.repository == 'jupyter/docker-stacks' x86_64-datascience: - needs: [x86_64-scipy] uses: ./.github/workflows/docker-build-test-upload.yml with: parentImage: scipy-notebook image: datascience-notebook platform: x86_64 runsOn: ubuntu-latest + needs: [x86_64-scipy] aarch64-pyspark: - needs: [aarch64-scipy] uses: ./.github/workflows/docker-build-test-upload.yml - if: github.repository == 'jupyter/docker-stacks' with: parentImage: scipy-notebook image: pyspark-notebook platform: aarch64 runsOn: ARM64 + needs: [aarch64-scipy] + if: github.repository == 'jupyter/docker-stacks' x86_64-pyspark: - needs: [x86_64-scipy] uses: ./.github/workflows/docker-build-test-upload.yml with: parentImage: scipy-notebook image: pyspark-notebook platform: x86_64 runsOn: ubuntu-latest + needs: [x86_64-scipy] aarch64-all-spark: - needs: [aarch64-pyspark] uses: ./.github/workflows/docker-build-test-upload.yml - if: github.repository == 'jupyter/docker-stacks' with: parentImage: pyspark-notebook image: all-spark-notebook platform: aarch64 runsOn: ARM64 + needs: [aarch64-pyspark] + if: github.repository == 'jupyter/docker-stacks' x86_64-all-spark: - needs: [x86_64-pyspark] uses: ./.github/workflows/docker-build-test-upload.yml with: parentImage: pyspark-notebook image: all-spark-notebook platform: x86_64 runsOn: ubuntu-latest + needs: [x86_64-pyspark] 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: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} - needs: - [ - aarch64-foundation, - aarch64-base, - aarch64-minimal, - aarch64-scipy, - aarch64-r, - aarch64-datascience, - aarch64-pyspark, - aarch64-all-spark, - ] strategy: matrix: image: @@ -257,15 +249,41 @@ jobs: pyspark-notebook, all-spark-notebook, ] - uses: ./.github/workflows/docker-tag-manifest-push.yml - with: - platform: aarch64 - image: ${{ matrix.image }} + needs: + [ + aarch64-foundation, + 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: + uses: ./.github/workflows/docker-tag-manifest-push.yml + with: + platform: x86_64 + 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: [ x86_64-foundation, @@ -278,52 +296,34 @@ jobs: x86_64-pyspark, 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: - 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 with: 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' 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: 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'