Better parallel jobs
This commit is contained in:
@@ -20,10 +20,11 @@ variables:
|
|||||||
RUST_LOG_STYLE: always
|
RUST_LOG_STYLE: always
|
||||||
BB_SIGNING_DRIVER: sigstore
|
BB_SIGNING_DRIVER: sigstore
|
||||||
BB_CACHE_LAYERS: 'true'
|
BB_CACHE_LAYERS: 'true'
|
||||||
|
BB_BUILD_PUSH: 'true'
|
||||||
CLICOLOR_FORCE: 1
|
CLICOLOR_FORCE: 1
|
||||||
TAG: main
|
TAG: main
|
||||||
|
|
||||||
.build:
|
default:
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
interruptible: true
|
interruptible: true
|
||||||
@@ -32,6 +33,8 @@ variables:
|
|||||||
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
|
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
|
||||||
- export COSIGN_PRIVATE_KEY=$(cat .secure_files/cosign.key)
|
- export COSIGN_PRIVATE_KEY=$(cat .secure_files/cosign.key)
|
||||||
- sleep 5
|
- sleep 5
|
||||||
|
|
||||||
|
.build:
|
||||||
script:
|
script:
|
||||||
- bluebuild build "./recipes/${RECIPE}"
|
- bluebuild build "./recipes/${RECIPE}"
|
||||||
|
|
||||||
@@ -40,7 +43,6 @@ base-images:
|
|||||||
- .build
|
- .build
|
||||||
stage: base-images
|
stage: base-images
|
||||||
variables:
|
variables:
|
||||||
BB_BUILD_PUSH: 'true'
|
|
||||||
BB_BUILD_RECHUNK: 'true'
|
BB_BUILD_RECHUNK: 'true'
|
||||||
rules:
|
rules:
|
||||||
# Run when any of the base recipes change
|
# Run when any of the base recipes change
|
||||||
@@ -56,7 +58,7 @@ base-images:
|
|||||||
- when: never
|
- when: never
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- BASE:
|
- RECIPE:
|
||||||
- base.yml
|
- base.yml
|
||||||
# - base-nvidia.yml
|
# - base-nvidia.yml
|
||||||
# - base-cosmic.yml
|
# - base-cosmic.yml
|
||||||
@@ -65,31 +67,54 @@ base-images:
|
|||||||
- base-combo-nvidia.yml
|
- base-combo-nvidia.yml
|
||||||
- base-kinoite.yml
|
- base-kinoite.yml
|
||||||
# - base-kinoite-nvidia.yml
|
# - base-kinoite-nvidia.yml
|
||||||
script:
|
|
||||||
- bluebuild build "./recipes/${BASE}"
|
|
||||||
|
|
||||||
build-images:
|
wke-images:
|
||||||
extends:
|
extends:
|
||||||
- .build
|
- .build
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
needs:
|
||||||
BB_BUILD_PUSH: 'true'
|
- job: 'base-images [base.yml]'
|
||||||
|
optional: true
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- RECIPE:
|
- RECIPE:
|
||||||
- wke-worker.yml
|
- wke-worker.yml
|
||||||
- wke-fw-desktop.yml
|
- wke-fw-desktop.yml
|
||||||
- wke-server.yml
|
- wke-server.yml
|
||||||
BASE: base.yml
|
|
||||||
- RECIPE: cp-laptop.yml
|
kinoite-images:
|
||||||
BASE: base-kinoite.yml
|
extends:
|
||||||
- RECIPE: jp-desktop-nvidia.yml
|
- .build
|
||||||
BASE: base-combo-nvidia.yml
|
stage: build
|
||||||
- RECIPE: jp-laptop.yml
|
|
||||||
BASE: base-combo.yml
|
|
||||||
needs:
|
needs:
|
||||||
- job: base-images
|
- job: 'base-images [base-kinoite.yml]'
|
||||||
optional: true
|
optional: true
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- BASE: $BASE
|
- RECIPE:
|
||||||
|
- cp-laptop.yml
|
||||||
|
|
||||||
|
combo-images:
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
stage: build
|
||||||
|
needs:
|
||||||
|
- job: 'base-images [base-combo.yml]'
|
||||||
|
optional: true
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- RECIPE:
|
||||||
|
- jp-laptop.yml
|
||||||
|
|
||||||
|
combo-nvidia-images:
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
stage: build
|
||||||
|
needs:
|
||||||
|
- job: 'base-images [base-combo-nvidia.yml]'
|
||||||
|
optional: true
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- RECIPE:
|
||||||
|
- jp-desktop-nvidia.yml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user