Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FAST_BUILD] Introduce fast build #2014

Merged
merged 22 commits into from
Nov 4, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 72 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build, test and push Docker Images

# [FAST_BUILD] in the commit message makes this workflow only build
# `jupyter/docker-stacks-foundation` and `/jupyter/base-notebook`
# This allows to run CI faster in case where full build is not required

on:
schedule:
# Weekly, at 03:00 on Monday UTC time
Expand Down Expand Up @@ -99,7 +103,7 @@ jobs:
platform: aarch64
runsOn: ARM64
needs: [aarch64-base]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

x86_64-minimal:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -109,6 +113,7 @@ jobs:
platform: x86_64
runsOn: ubuntu-latest
needs: [x86_64-base]
if: ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

aarch64-scipy:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -118,7 +123,7 @@ jobs:
platform: aarch64
runsOn: ARM64
needs: [aarch64-minimal]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

x86_64-scipy:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -128,6 +133,7 @@ jobs:
platform: x86_64
runsOn: ubuntu-latest
needs: [x86_64-minimal]
if: ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

aarch64-r:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -137,7 +143,7 @@ jobs:
platform: aarch64
runsOn: ARM64
needs: [aarch64-minimal]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

x86_64-r:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -147,6 +153,7 @@ jobs:
platform: x86_64
runsOn: ubuntu-latest
needs: [x86_64-minimal]
if: ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

aarch64-julia:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -156,7 +163,7 @@ jobs:
platform: aarch64
runsOn: ARM64
needs: [aarch64-minimal]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

x86_64-julia:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -166,6 +173,7 @@ jobs:
platform: x86_64
runsOn: ubuntu-latest
needs: [x86_64-minimal]
if: ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

aarch64-tensorflow:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -175,6 +183,7 @@ jobs:
platform: aarch64
runsOn: ARM64
needs: [aarch64-scipy]
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}
mathbunnyru marked this conversation as resolved.
Show resolved Hide resolved

x86_64-tensorflow:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -184,6 +193,7 @@ jobs:
platform: x86_64
runsOn: ubuntu-latest
needs: [x86_64-scipy]
if: ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

aarch64-datascience:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -193,7 +203,7 @@ jobs:
platform: aarch64
runsOn: ARM64
needs: [aarch64-scipy]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

x86_64-datascience:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -203,6 +213,7 @@ jobs:
platform: x86_64
runsOn: ubuntu-latest
needs: [x86_64-scipy]
if: ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

aarch64-pyspark:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -212,7 +223,7 @@ jobs:
platform: aarch64
runsOn: ARM64
needs: [aarch64-scipy]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

x86_64-pyspark:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -222,6 +233,7 @@ jobs:
platform: x86_64
runsOn: ubuntu-latest
needs: [x86_64-scipy]
if: ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

aarch64-all-spark:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -231,7 +243,7 @@ jobs:
platform: aarch64
runsOn: ARM64
needs: [aarch64-pyspark]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

x86_64-all-spark:
uses: ./.github/workflows/docker-build-test-upload.yml
Expand All @@ -241,6 +253,7 @@ jobs:
platform: x86_64
runsOn: ubuntu-latest
needs: [x86_64-pyspark]
if: ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

aarch64-images-tag-push:
uses: ./.github/workflows/docker-tag-push.yml
Expand Down Expand Up @@ -278,7 +291,21 @@ jobs:
aarch64-pyspark,
aarch64-all-spark,
]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

aarch64-images-tag-push-fast:
uses: ./.github/workflows/docker-tag-push.yml
with:
platform: aarch64
image: ${{ matrix.image }}
secrets:
REGISTRY_USERNAME: ${{ secrets.QUAY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.QUAY_ROBOT_TOKEN }}
strategy:
matrix:
image: [docker-stacks-foundation, base-notebook]
needs: [aarch64-foundation, aarch64-base]
if: github.repository_owner == 'jupyter' && ${{ contains(github.event.head_commit.message, '[FAST_BUILD]') }}

x86_64-images-tag-push:
uses: ./.github/workflows/docker-tag-push.yml
Expand Down Expand Up @@ -316,6 +343,21 @@ jobs:
x86_64-pyspark,
x86_64-all-spark,
]
if: ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

x86_64-images-tag-push-fast:
uses: ./.github/workflows/docker-tag-push.yml
with:
platform: x86_64
image: ${{ matrix.image }}
secrets:
REGISTRY_USERNAME: ${{ secrets.QUAY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.QUAY_ROBOT_TOKEN }}
strategy:
matrix:
image: [docker-stacks-foundation, base-notebook]
needs: [x86_64-foundation, x86_64-base]
if: ${{ contains(github.event.head_commit.message, '[FAST_BUILD]') }}

merge-tags:
uses: ./.github/workflows/docker-merge-tags.yml
Expand All @@ -340,12 +382,32 @@ jobs:
all-spark-notebook,
]
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}

merge-tags-fast:
uses: ./.github/workflows/docker-merge-tags.yml
with:
image: ${{ matrix.image }}
secrets:
REGISTRY_USERNAME: ${{ secrets.QUAY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.QUAY_ROBOT_TOKEN }}
strategy:
matrix:
image: [docker-stacks-foundation, base-notebook]
needs: [aarch64-images-tag-push-fast, x86_64-images-tag-push-fast]
if: github.repository_owner == 'jupyter' && ${{ contains(github.event.head_commit.message, '[FAST_BUILD]') }}

wiki-update:
uses: ./.github/workflows/docker-wiki-update.yml
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' && ${{ !contains(github.event.head_commit.message, '[FAST_BUILD]') }}
permissions:
contents: write

wiki-update-fast:
uses: ./.github/workflows/docker-wiki-update.yml
needs: [aarch64-images-tag-push-fast, x86_64-images-tag-push-fast]
if: github.repository_owner == 'jupyter' && ${{ contains(github.event.head_commit.message, '[FAST_BUILD]') }}
permissions:
contents: write

Expand Down
Loading