Use explicit provides/requires for container jobs
Rather than rely on the implicit docker-image provides/requires list explicit per-image requirements for related jobs to reduce, unecessarily serialization in change queues. Depends-On: https://review.opendev.org/711119 Change-Id: Ife5c40cf196c469c503009c5135c78be2957d651
This commit is contained in:
parent
83af405ca7
commit
715ec866a3
12
.zuul.yaml
12
.zuul.yaml
|
@ -102,7 +102,9 @@
|
||||||
description: Run the commands in the Zuul quick-start documentation.
|
description: Run the commands in the Zuul quick-start documentation.
|
||||||
run: playbooks/quick-start/run.yaml
|
run: playbooks/quick-start/run.yaml
|
||||||
post-run: playbooks/quick-start/post.yaml
|
post-run: playbooks/quick-start/post.yaml
|
||||||
requires: docker-image
|
requires:
|
||||||
|
- zuul-container-image
|
||||||
|
- nodepool-container-image
|
||||||
required-projects:
|
required-projects:
|
||||||
- zuul/zuul
|
- zuul/zuul
|
||||||
|
|
||||||
|
@ -129,6 +131,10 @@
|
||||||
description: Build Docker images.
|
description: Build Docker images.
|
||||||
allowed-projects: zuul/zuul
|
allowed-projects: zuul/zuul
|
||||||
timeout: 2700 # 45 minutes
|
timeout: 2700 # 45 minutes
|
||||||
|
requires:
|
||||||
|
- python-builder-container-image
|
||||||
|
- python-base-container-image
|
||||||
|
provides: zuul-container-image
|
||||||
vars: &zuul_image_vars
|
vars: &zuul_image_vars
|
||||||
docker_images:
|
docker_images:
|
||||||
- context: .
|
- context: .
|
||||||
|
@ -155,6 +161,10 @@
|
||||||
parent: opendev-upload-docker-image
|
parent: opendev-upload-docker-image
|
||||||
description: Build Docker images and upload to Docker Hub.
|
description: Build Docker images and upload to Docker Hub.
|
||||||
allowed-projects: zuul/zuul
|
allowed-projects: zuul/zuul
|
||||||
|
requires:
|
||||||
|
- python-builder-container-image
|
||||||
|
- python-base-container-image
|
||||||
|
provides: zuul-container-image
|
||||||
secrets:
|
secrets:
|
||||||
name: docker_credentials
|
name: docker_credentials
|
||||||
secret: zuul-dockerhub
|
secret: zuul-dockerhub
|
||||||
|
|
Loading…
Reference in New Issue