Set up gitea image provides and requires for gating

This should ensure that if we have a parent job that updates the gitea
version and a do not merge child job that induces an artificial failure
for zuul hold purposes that we test the correct image in the child job's
changes.

Prior to this we were testing the existing published images, but
provides + requires will give the correct signaling to make the desired
"test new proposed image" behavior happen in the child change builds.

Change-Id: Ie6b827b650e0f32606dc5ec7f4aa0adfeebdeb5e
This commit is contained in:
Clark Boylan 2021-03-19 10:33:09 -07:00
parent bf8e8916aa
commit c2d46f4247
3 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,7 @@
name: system-config-build-image-gitea
description: Build a gitea image.
parent: system-config-build-image
provides: gitea-container-image
vars: &gitea_vars
docker_images:
- context: docker/gitea
@ -50,6 +51,7 @@
name: system-config-upload-image-gitea
description: Build and upload a gitea image.
parent: system-config-upload-image
provides: gitea-container-image
vars: *gitea_vars
files: *gitea_files

View File

@ -4,6 +4,7 @@
description: Build a haproxy-statsd image.
parent: system-config-build-image
requires: python-base-3.7-container-image
provides: haproxy-statsd-container-image
vars: &haproxy-statsd_vars
docker_images:
- context: docker/haproxy-statsd
@ -18,6 +19,7 @@
description: Build and upload a haproxy-statsd image.
parent: system-config-upload-image
requires: python-base-3.7-container-image
provides: haproxy-statsd-container-image
vars: *haproxy-statsd_vars
files: *haproxy-statsd_files

View File

@ -529,6 +529,9 @@
required-projects:
- openstack/project-config
- opendev/system-config
requires:
- gitea-container-image
- haproxy-statsd-container-image
vars:
run_playbooks:
- playbooks/letsencrypt.yaml