forked from infra/ansible
Syntax
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
ff96161c07
commit
ee0afdd0aa
3 changed files with 8 additions and 6 deletions
|
|
@ -34,6 +34,8 @@
|
|||
queue_thresholds:
|
||||
warning: 10
|
||||
critical: 100
|
||||
# does not publish messages
|
||||
user_sent_topics: ^$
|
||||
- role: openshift/secret-file
|
||||
secret_file_app: jira-sync
|
||||
secret_file_secret_name: fedora-messaging-ca
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ spec:
|
|||
git:
|
||||
#uri: https://github.com/Zlopez/jira_sync.git
|
||||
uri: https://github.com/abompard/jira_sync.git
|
||||
ref: "{{ (env == 'staging')|ternary('main', 'main') }}"
|
||||
ref: "{{ (env == 'staging')|ternary('staging', 'main') }}"
|
||||
strategy:
|
||||
type: Source
|
||||
sourceStrategy:
|
||||
|
|
@ -29,4 +29,4 @@ spec:
|
|||
- type: ImageChange
|
||||
- type: GitHub
|
||||
github:
|
||||
secret: "{{ (env == 'staging')|ternary(jira-sync_stg_webhook_secret, jira-sync_prod_webhook_secret) }}"
|
||||
secret: "{{ (env == 'staging')|ternary(jira_sync_stg_webhook_secret, jira_sync_prod_webhook_secret) }}"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ apiVersion: v1
|
|||
metadata:
|
||||
name: jira-sync
|
||||
stringData:
|
||||
jira-token: "{{ (env == 'staging')|ternary(jira-sync_stg_jira_token, jira-sync_prod_jira_token) }}"
|
||||
githubcom-token: "{{ (env == 'staging')|ternary(jira-sync_stg_githubcom_token, jira-sync_prod_githubcom_token) }}"
|
||||
gitlabcom-token: "{{ (env == 'staging')|ternary(jira-sync_stg_gitlabcom_token, jira-sync_prod_gitlabcom_token) }}"
|
||||
codebergorg-token: "{{ (env == 'staging')|ternary(jira-sync_stg_codebergorg_token, jira-sync_prod_codebergorg_token) }}"
|
||||
jira-token: "{{ (env == 'staging')|ternary(jira_sync_stg_jira_token, jira_sync_prod_jira_token) }}"
|
||||
githubcom-token: "{{ (env == 'staging')|ternary(jira_sync_stg_githubcom_token, jira_sync_prod_githubcom_token) }}"
|
||||
gitlabcom-token: "{{ (env == 'staging')|ternary(jira_sync_stg_gitlabcom_token, jira_sync_prod_gitlabcom_token) }}"
|
||||
codebergorg-token: "{{ (env == 'staging')|ternary(jira_sync_stg_codebergorg_token, jira_sync_prod_codebergorg_token) }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue