Hi,

here is a patch for ansible for deployment of Anitya 0.13.0.

mkonecny
diff --git a/roles/openshift-apps/release-monitoring/files/buildconfig.yml 
b/roles/openshift-apps/release-monitoring/files/buildconfig.yml
index 24903d4fa..d490c4a52 100644
--- a/roles/openshift-apps/release-monitoring/files/buildconfig.yml
+++ b/roles/openshift-apps/release-monitoring/files/buildconfig.yml
@@ -31,7 +31,7 @@ items:
                 python3-pip \
                 python3-psycopg2 \
                 python3-setuptools \
-                python3-sphinxcontrib-httpdomain \ 
+                python3-sphinxcontrib-httpdomain \
                 python3-social-auth-app-flask-sqlalchemy \
                 python3-straight-plugin \
                 python3-sqlalchemy \
@@ -41,7 +41,7 @@ items:
             dnf clean all -y
         RUN git clone https://github.com/release-monitoring/anitya.git && \
                 pushd anitya && \
-                git checkout 0.12.1 && \
+                git checkout 0.13.0 && \
                 pushd docs && \
                 sphinx-build-3 -b html . _build/html && \
                 mkdir -p ../anitya/static/docs/ && \
diff --git a/roles/openshift-apps/release-monitoring/files/cron.yml 
b/roles/openshift-apps/release-monitoring/files/cron.yml
index 7eac536cb..385d1900c 100644
--- a/roles/openshift-apps/release-monitoring/files/cron.yml
+++ b/roles/openshift-apps/release-monitoring/files/cron.yml
@@ -5,11 +5,11 @@ metadata:
 spec:
   concurrencyPolicy: Forbid
   schedule: "10 */12 * * *"
-  jobTemplate:             
+  jobTemplate:
     spec:
       template:
         metadata:
-          labels:          
+          labels:
             parent: "cronjobanitya"
         spec:
           containers:
@@ -23,7 +23,7 @@ spec:
             - mountPath: /etc/anitya
               name: config-volume
               readOnly: true
-          restartPolicy: OnFailure 
+          restartPolicy: OnFailure
           volumes:
           - configMap:
               defaultMode: 420
diff --git a/roles/openshift-apps/release-monitoring/templates/configmap.yml 
b/roles/openshift-apps/release-monitoring/templates/configmap.yml
index f079ccbca..7ad8d1e8c 100644
--- a/roles/openshift-apps/release-monitoring/templates/configmap.yml
+++ b/roles/openshift-apps/release-monitoring/templates/configmap.yml
@@ -52,6 +52,19 @@ data:
         'social_core.backends.open_id.OpenIdAuth',
     ]
 
+# Default regular expression used for backend
+default_regex = """\
+                
%(name)s(?:[-_]?(?:minsrc|src|source))?[-_]([^-/_\\s]+?)(?i)(?:[-_]\
+                
(?:minsrc|src|source|asc|release))?\\.(?:tar|t[bglx]z|tbz2|zip)\
+                """
+
+    # Github access token
+{% if env == 'staging' %}
+    github_access_token = "{{ github_stg_release_monitoring }}"
+{% else %}
+    github_access_token = "{{ github_prod_release_monitoring }}"
+{% endif %}
+
     # The logging configuration, in dictConfig format.
     [anitya_log_config]
         version = 1
_______________________________________________
infrastructure mailing list -- infrastructure@lists.fedoraproject.org
To unsubscribe send an email to infrastructure-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/infrastructure@lists.fedoraproject.org

Reply via email to