d016a39b74
This job will be used to push docker images built by pbrx to the openstackzuul Docker Hub account. Change-Id: Id828b417512eed6b9e48d299398cd9049a7fb6ad
19 lines
484 B
YAML
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
|