Add prefix support to pbrx-build-container-images

The pbrx command supports an optional 'prefix' to use when tagging
images. Add support to the job for specifying it.

Change-Id: Ic7ad8dd92f377bb3b091a83bc3dd963380991acf
This commit is contained in:
Monty Taylor 2018-07-12 16:14:44 -05:00
parent 1f0bf4659d
commit b405f744b8
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,14 @@
- hosts: all
tasks:
- name: Build zuul container images
- name: Build prefexed container images
when: pbrx_prefix is defined
command: 'pbrx --debug build-images --prefix={{ pbrx_prefix }}'
args:
chdir: '{{ zuul_work_dir|default(zuul.project.src_dir) }}'
- name: Build unprefixed zuul container images
when: pbrx_prefix is not defined
command: pbrx --debug build-images
args:
chdir: '{{ zuul.project.src_dir }}'
chdir: '{{ zuul_work_dir|default(zuul.project.src_dir) }}'