project-config/playbooks/pbrx-push/post.yaml
David Shrewsbury d016a39b74 Add a job to push pbrx container images
This job will be used to push docker images built by pbrx to the
openstackzuul Docker Hub account.

Change-Id: Id828b417512eed6b9e48d299398cd9049a7fb6ad
2018-08-20 15:31:04 -04:00

19 lines
484 B
YAML

- hosts: all
tasks:
- name: Docker Hub login
command: docker login -u {{ openstackzuul_docker_login.user }} -p {{ openstackzuul_docker_login.password }}
no_log: True
- block:
- name: Push prefixed container images
command: 'pbrx --debug push-images --prefix={{ pbrx_prefix }}'
args:
chdir: '{{ zuul_work_dir|default(zuul.project.src_dir) }}'
always:
- name: Docker Hub logout
command: docker logout