diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/playbooks/publish.yml | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/playbooks/publish.yml b/tests/playbooks/publish.yml index 9a019fac9..212d572ea 100644 --- a/tests/playbooks/publish.yml +++ b/tests/playbooks/publish.yml @@ -1,8 +1,20 @@ --- - hosts: all tasks: + - name: List all containers + docker_host_info: + images: yes + images_filters: + reference: "kolla/*" + register: docker_host_info + - name: Login to Dockerhub - command: "docker login -u {{ kolla_dockerhub_creds.user }} -p {{ kolla_dockerhub_creds.password }}" - no_log: true + docker_login: + username: "{{ kolla_dockerhub_creds.user }}" + password: "{{ kolla_dockerhub_creds.password }}" - - shell: "for img in $(docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep kolla ); do docker push $img; done" + - name: Push built container images + docker_image: + name: "{{ item.RepoTags.0 }}" + push: yes + loop: "{{ docker_host_info.images }}" |
