de0e82ebca
Change-Id: Ibfef478998981956378f9082adcae95db8b9401d Story: 2001694 Task: 29513
13 lines
388 B
YAML
13 lines
388 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Login to Dockerhub
|
|
command: "docker login -u {{ doker_hub_login_api.user }} -p {{ doker_hub_login_api.password }}"
|
|
no_log: true
|
|
|
|
- name: List images
|
|
shell: "docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep monasca"
|
|
|
|
- name: Push to Docker Hub all tags
|
|
shell: "docker push monasca/api"
|