Add a conditional to declare secrets

This permit to push the modification, then open a ticket to add the secret,
and deploy fine in staging if there is no integration with github.
This commit is contained in:
Michael Scherer 2018-08-14 15:41:42 +02:00
parent 3677dc58cc
commit 185a24c325
2 changed files with 11 additions and 4 deletions

View file

@ -20,6 +20,12 @@ spec:
kind: ImageStreamTag
name: s2i-golang:latest
triggers:
{% if coreos_github_secret is defined %}
- type: GitHub
github:
secret: "{{ coreos_github_secret }}"
{% endif %}
# TODO add that once it is clear on how to store the secret
# - type: GitHub
# github:

View file

@ -20,9 +20,10 @@ spec:
kind: ImageStreamTag
name: s2i-golang:latest
triggers:
# TODO add that once it is clear on how to store the secret
# - type: GitHub
# github:
# secret: "some_coreos_github_secret"
{% if silverblue_github_secret is defined %}
- type: GitHub
github:
secret: "{{ silverblue_github_secret }}"
{% endif %}
- type: ConfigChange
- type: ImageChange