fc9a45f36f
Change-Id: Ib49cc2a23627cf7bd15d875199efe629b8194670 Story: 2001694 Task: 30512
13 lines
406 B
YAML
13 lines
406 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Login to Dockerhub
|
|
command: "docker login -u {{ doker_hub_login_persister.user }} -p {{ doker_hub_login_persister.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/persister"
|