Add job for using pbrx to build container images

The pbrx build-images command is directly applicable to any python
project with pbr and bindep. Make a simple job that will run pbrx
to produce images.

Change-Id: Ica28f42bd0acc78a0e960ceef30e5e5045e8b389
This commit is contained in:
Monty Taylor 2018-07-12 10:18:59 -05:00
parent f49197ffc8
commit 5fb2fb69d1
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
3 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,11 @@
- job:
name: pbrx-build-container-images
nodeset: ubuntu-bionic
required-projects:
- openstack/pbrx
pre-run: playbooks/container-images/pre.yaml
run: playbooks/container-images/run.yaml
- project:
check:
jobs:

View File

@ -0,0 +1,11 @@
- hosts: all
roles:
- install-docker
- hosts: all
tasks:
- name: Install pbrx software
command: python3 -m pip install src/git.openstack.org/openstack/pbrx
become: yes

View File

@ -0,0 +1,10 @@
- hosts: all
tasks:
- name: reset ssh connection to pick up docker group
meta: reset_connection
- name: Build zuul container images
command: pbrx --debug build-images
args:
chdir: src/git.openstack.org/openstack-infra/zuul