From 1a6d5d26765d38ec4257a78ae4f43ee547857429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 27 Jun 2022 11:25:06 +0200 Subject: [PATCH] Hmm we actually want to do this on prod only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- playbooks/manual/upgrade/bodhi.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/manual/upgrade/bodhi.yml b/playbooks/manual/upgrade/bodhi.yml index c519f62a4b..98d1115ab1 100644 --- a/playbooks/manual/upgrade/bodhi.yml +++ b/playbooks/manual/upgrade/bodhi.yml @@ -148,20 +148,22 @@ command: oc -n bodhi scale dc/bodhi-web --replicas={{ bodhi_openshift_pods }} when: env == "staging" # Redeploy the build config as it may request a newer version in the Dockerfile + # Only do it on prod because staging tracks a branch - import_role: name: openshift/object vars: app: bodhi template: buildconfig.yml objectname: buildconfig.yml - when: env == "staging" + when: env != "staging" # Start a build with the new buildconfig + # Only do it on prod because staging builds are triggered by Github's webhook - import_role: name: openshift/start-build vars: app: bodhi buildname: bodhi-base - when: env == "staging" + when: env != "staging" post_tasks: - name: tell nagios to unshush w.r.t. the frontend