anitya/release-monitoring: add github trigger
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
05f64aaa80
commit
862f6f1f4a
2 changed files with 15 additions and 14 deletions
|
@ -44,7 +44,11 @@ items:
|
||||||
RUN pip-3 install sqlalchemy_schemadisplay
|
RUN pip-3 install sqlalchemy_schemadisplay
|
||||||
RUN git clone https://github.com/release-monitoring/anitya.git && \
|
RUN git clone https://github.com/release-monitoring/anitya.git && \
|
||||||
pushd anitya && \
|
pushd anitya && \
|
||||||
git checkout 0.14.0 && \
|
{% if env == 'staging' %}
|
||||||
|
git checkout staging && \
|
||||||
|
{% else %}
|
||||||
|
git checkout production && \
|
||||||
|
{% endif %}
|
||||||
python3 setup.py install && \
|
python3 setup.py install && \
|
||||||
pushd docs && \
|
pushd docs && \
|
||||||
mkdir -p images && \
|
mkdir -p images && \
|
||||||
|
@ -74,5 +78,15 @@ items:
|
||||||
to:
|
to:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
name: release-monitoring-web:latest
|
name: release-monitoring-web:latest
|
||||||
|
triggers:
|
||||||
|
{% if stg_anitya_github_secret is defined and env == 'staging' %}
|
||||||
|
- type: GitHub
|
||||||
|
github:
|
||||||
|
secret: "{{ stg_anitya_github_secret }}"
|
||||||
|
{% if anitya_github_secret is defined and env == 'production' %}
|
||||||
|
- type: GitHub
|
||||||
|
github:
|
||||||
|
secret: "{{ anitya_github_secret }}"
|
||||||
|
{% endif %}
|
||||||
kind: List
|
kind: List
|
||||||
metadata: {}
|
metadata: {}
|
||||||
|
|
|
@ -23,19 +23,6 @@ items:
|
||||||
volumes:
|
volumes:
|
||||||
- config-volume
|
- config-volume
|
||||||
resources: {}
|
resources: {}
|
||||||
rollingParams:
|
|
||||||
intervalSeconds: 1
|
|
||||||
maxSurge: 25%
|
|
||||||
maxUnavailable: 25%
|
|
||||||
timeoutSeconds: 600
|
|
||||||
updatePeriodSeconds: 1
|
|
||||||
pre:
|
|
||||||
failurePolicy: Abort
|
|
||||||
execNewPod:
|
|
||||||
containerName: release-monitoring-web
|
|
||||||
command: [ /bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini upgrade head" ]
|
|
||||||
volumes:
|
|
||||||
- config-volume
|
|
||||||
type: Recreate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue