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 git clone https://github.com/release-monitoring/anitya.git && \
|
||||
pushd anitya && \
|
||||
git checkout 0.14.0 && \
|
||||
{% if env == 'staging' %}
|
||||
git checkout staging && \
|
||||
{% else %}
|
||||
git checkout production && \
|
||||
{% endif %}
|
||||
python3 setup.py install && \
|
||||
pushd docs && \
|
||||
mkdir -p images && \
|
||||
|
@ -74,5 +78,15 @@ items:
|
|||
to:
|
||||
kind: ImageStreamTag
|
||||
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
|
||||
metadata: {}
|
||||
|
|
|
@ -23,19 +23,6 @@ items:
|
|||
volumes:
|
||||
- config-volume
|
||||
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
|
||||
template:
|
||||
metadata:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue