Skip to content

Add production environments

Michael Hofmann requested to merge mh21/containers:tag-images-as-production into main

In cki_build_image.sh, images are tagged p-1234 after they have been successfully built (AUTOMATIC_TAGS not defined). After the various test jobs ran, they are additionally also tagged as g-1234 ("gated", AUTOMATIC_TAGS=true).

In the parent pipeline, :production jobs are added for each image.

It is necessary to work around the fact that it is impossible to have the production jobs only available for the child pipelines that succeeded properly. For that, mark the child pipelines with allow_failure=true, so that the :production jobs can always be run. The production deployment jobs (DEPLOY_TAG=something) are changed to use the g-1234 gated image tags so that they will not succeed in the case where the images did not pass gating.

Signed-off-by: Michael Hofmann mhofmann@redhat.com

Edited by Michael Hofmann

Merge request reports