From f8f758be97c83969726e836d2a9fef84c871f151 Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Wed, 18 Jan 2023 13:43:02 +0900 Subject: [PATCH] mdapi: rollout to prod Signed-off-by: David Kirwan Signed-off-by: Akashdeep Dhar --- roles/openshift-apps/mdapi/templates/buildconfig.yml | 4 ++-- roles/openshift-apps/mdapi/templates/myconfig.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/openshift-apps/mdapi/templates/buildconfig.yml b/roles/openshift-apps/mdapi/templates/buildconfig.yml index b2f7ac8408..d6526a59be 100644 --- a/roles/openshift-apps/mdapi/templates/buildconfig.yml +++ b/roles/openshift-apps/mdapi/templates/buildconfig.yml @@ -11,8 +11,8 @@ spec: uri: https://github.com/fedora-infra/mdapi.git ref: "develop" {% else %} - uri: https://pagure.io/mdapi.git - ref: "production" + uri: https://github.com/fedora-infra/mdapi.git + ref: "prod" {% endif %} strategy: type: Docker diff --git a/roles/openshift-apps/mdapi/templates/myconfig.py b/roles/openshift-apps/mdapi/templates/myconfig.py index 7ac629dae8..b6159d730f 100644 --- a/roles/openshift-apps/mdapi/templates/myconfig.py +++ b/roles/openshift-apps/mdapi/templates/myconfig.py @@ -68,7 +68,11 @@ PKGDB2_VERIFY = True DL_VERIFY = True # Whether to publish to Fedora Messaging +{% if env == "staging" %} PUBLISH_CHANGES = False +{% else %} +PUBLISH_CHANGES = True +{% endif %} # How long to wait between retries if processing failed CRON_SLEEP = 30