FPDC: make sure we use different secret for stg and prod

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2019-01-08 19:38:31 +01:00
parent 2038ba3ed0
commit e0b62c323b

View file

@ -26,10 +26,14 @@ spec:
namespace: openshift
name: python:3.6
triggers:
{% if stg_fpdc_github_secret is defined %}
{% if stg_fpdc_github_secret is defined and env == 'staging' %}
- type: GitHub
github:
secret: "{{ stg_fpdc_github_secret }}"
{% elif prod_fpdc_github_secret is defined and env == 'production' %}
- type: GitHub
github:
secret: "{{ prod_fpdc_github_secret }}"
{% endif %}
- type: ConfigChange
- type: ImageChange