File tree Expand file tree Collapse file tree 4 files changed +23
-10
lines changed Expand file tree Collapse file tree 4 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 146
146
kolla_logs_dir : " {{ zuul_output_dir }}/logs/kolla"
147
147
kolla_build_logs_dir : " {{ kolla_logs_dir }}/build"
148
148
virtualenv_path : " /tmp/kolla-virtualenv"
149
+ kolla_build_template_overrides_path : " {{ zuul.executor.work_root }}/{{ zuul.projects['opendev.org/openstack/kolla'].src_dir }}/tests/templates/template_overrides.j2"
149
150
150
151
- job :
151
152
name : kolla-base-podman
Original file line number Diff line number Diff line change
1
+ ---
2
+ kolla_build_logs_dir : " {{ zuul_output_dir }}/logs/kolla/build"
3
+ kolla_build_template_overrides_path : " "
4
+ kolla_build_venv_path : " /tmp/kolla-virtualenv"
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Template template_overrides.j2
3
+ ansible.builtin.template :
4
+ src : " {{ kolla_build_template_overrides_path }}"
5
+ dest : /etc/kolla/template_overrides.j2
6
+ when : kolla_build_template_overrides_path | length > 0
7
+
8
+ - name : Run kolla-build to template out dockerfiles
9
+ ansible.builtin.command :
10
+ cmd : >-
11
+ {{ kolla_build_venv_path }}/bin/kolla-build --template-only
12
+ --work-dir {{ kolla_build_logs_dir }}/work_dir
13
+
14
+ - name : Run kolla-build
15
+ ansible.builtin.command :
16
+ cmd : " {{ kolla_build_venv_path }}/bin/kolla-build"
Original file line number Diff line number Diff line change 38
38
- import_role :
39
39
name : kolla-build-config
40
40
41
- - name : Template template_overrides.j2
42
- template :
43
- src : " {{ zuul.executor.work_root }}/{{ zuul.project.src_dir }}/tests/templates/template_overrides.j2"
44
- dest : /etc/kolla/template_overrides.j2
45
-
46
- - name : Run kolla-build to template out dockerfiles
47
- command : " {{ virtualenv_path }}/bin/kolla-build --template-only --work-dir {{ kolla_build_logs_dir }}/work_dir"
48
-
49
- - name : Run kolla-build
50
- command : " {{ virtualenv_path }}/bin/kolla-build"
41
+ - import_role :
42
+ name : kolla-build
You can’t perform that action at this time.
0 commit comments