From 5cb6d30067f839159091e556f57328c7980a74da Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Wed, 9 Mar 2022 19:59:42 +1000 Subject: [PATCH] Make bodhi openshif image build not cache on stg previously, the image build was frequently not finding the new rpms for the staging snapshots when rebuilding the image. WE now don't uyse the cache when building the staging images for boshi-base on openshift Signed-off-by: Ryan Lerch --- roles/openshift-apps/bodhi/templates/buildconfig.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/openshift-apps/bodhi/templates/buildconfig.yml b/roles/openshift-apps/bodhi/templates/buildconfig.yml index 70568bbb70..95d341e865 100644 --- a/roles/openshift-apps/bodhi/templates/buildconfig.yml +++ b/roles/openshift-apps/bodhi/templates/buildconfig.yml @@ -20,7 +20,11 @@ items: strategy: type: Docker dockerStrategy: +{% if env == "staging" %} + noCache: True +{% else %} noCache: False +{% endif %} output: to: kind: ImageStreamTag