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:
parent
3677dc58cc
commit
185a24c325
2 changed files with 11 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue