FPDC: make sure we use different secret for stg and prod
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
2038ba3ed0
commit
e0b62c323b
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue