mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 21:41:53 +08:00
kerneltest: add github triggers
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user