diff --git a/roles/openshift-apps/planet/templates/buildconfig.yml.j2 b/roles/openshift-apps/planet/templates/buildconfig.yml.j2 index ba232a124f..7050cf4a1b 100644 --- a/roles/openshift-apps/planet/templates/buildconfig.yml.j2 +++ b/roles/openshift-apps/planet/templates/buildconfig.yml.j2 @@ -22,14 +22,6 @@ spec: triggers: - type: ConfigChange - type: ImageChange -{% if env == 'staging' %} - type: GitHub github: - secretReference: - name: planet_stg_github_secret -{% elif env == 'production' %} - - type: GitHub - github: - secretReference: - name: planet_github_secret -{% endif %} + secret: "{{ (env == 'staging')|ternary(planet_stg_github_secret, planet_github_secret) }}"