From c0d80427b9812aa1961511d25cfde2c635f618d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 27 Jun 2022 11:06:00 +0200 Subject: [PATCH] Also upgrade Bodhi in openshift in the Bodhi manual upgrade playbook 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/playbooks/manual/upgrade/bodhi.yml b/playbooks/manual/upgrade/bodhi.yml index 1032930541..16f5306772 100644 --- a/playbooks/manual/upgrade/bodhi.yml +++ b/playbooks/manual/upgrade/bodhi.yml @@ -147,6 +147,15 @@ - name: Scale up pods 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 + - role: openshift/object + app: bodhi + template: buildconfig.yml + objectname: buildconfig.yml + # Start a build with the new buildconfig + - role: openshift/start-build + app: bodhi + buildname: bodhi-base post_tasks: - name: tell nagios to unshush w.r.t. the frontend