forked from rht-labs/labs-ci-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci-playbook.yml
25 lines (25 loc) · 1.15 KB
/
ci-playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
- name: Running CI for Labs CI/CD
hosts: "{{ target }}"
vars:
scm_url: https://github.com/labs-robot/labs-ci-cd.git
ci_cd_namespace: labs-ci-cd
dev_namespace: labs-dev
test_namespace: labs-test
params_regexp_replace_pairs:
- regexp: '^((?!.*DISPLAY_NAME))(.*NAMESPACE.*)=((?!.*{{ project_name_postfix }}))(.*)$'
replace: '\2=\4{{ project_name_postfix }}'
- regexp: '^(NAMESPACE_DISPLAY_NAME)=((?!.*\({{ project_name_postfix }}\)))(.*)$'
replace: '\1=\3 ({{ project_name_postfix }})'
- regexp: '(SOURCE_REPOSITORY_URL)=(https:\/\/github\.com\/rht-labs\/labs-ci-cd.*)((\n.*)+)(SOURCE_REPOSITORY_REF)=(.*)'
replace: '\1={{ scm_url }}\3\5={{ scm_ref }}'
- regexp: '^(PIPELINE_SOURCE_REPOSITORY_REF)=(.*master.*)'
replace: '\1={{ scm_ref }}'
- regexp: '^(ROLE)=(.*)'
replace: '\1=admin'
galaxy_regexp_replace_pairs:
- regexp: '(- src: )(https:\/\/github\.com\/rht-labs\/labs-ci-cd.*)((\n.*)+)(version: )(.*)'
replace: '\1{{ scm_url }}\3\5{{ scm_ref }}'
roles:
- openshift-applier/roles/make-applier-projects-unique
- openshift-applier/roles/openshift-applier