kerneltest: add github triggers

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
Ryan Lercho 2024-03-21 18:30:22 +10:00
parent e954f86908
commit ef155c2518

View file

@ -13,6 +13,11 @@ spec:
type: Git
git:
uri: https://github.com/fedora-infra/kerneltest.git
{% if env == "staging" %}
ref: staging
{% else %}
ref: stable
{% endif %}
strategy:
type: Source
sourceStrategy:
@ -23,3 +28,13 @@ spec:
triggers:
- type: ConfigChange
- type: ImageChange
{% if kerneltest_stg_github_secret is defined and env == 'staging' %}
- type: GitHub
github:
secret: "{{ kerneltest_stg_github_secret }}"
{% endif %}
{% if kerneltest_prod_github_secret is defined and env == 'production' %}
- type: GitHub
github:
secret: "{{ kerneltest_prod_github_secret }}"
{% endif %}