build-containers: allow to use ci_branch to find out if it's train

In build-containers role, we try to find out if train is being deployed
but it's missing a check on ci_branch.
Thanks to that, we'll run the right tripleo-image-serve role on Train.

Change-Id: Ic3d9f706a1a8fe468be739e73d5b577e445b7d64
This commit is contained in:
Emilien Macchi 2020-07-21 15:00:01 -04:00
parent f0cb940efa
commit d7b3b43a68

View File

@ -92,6 +92,7 @@
when:
(release is defined and release == 'train')
or (branch_override is defined and branch_override == 'stable/train')
or (ci_branch is defined and ci_branch == 'train')
- name: Configure tripleo registry
include_role:
name: "{{ tripleo_image_serve_role | default('tripleo_image_serve') }}"