c63faad25b
Story: 2001694 Task: 30514 Change-Id: I170da7ef833a003222f234930c87cad0ca6dd8e0
13 lines
397 B
YAML
13 lines
397 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Login to Dockerhub
|
|
command: "docker login -u {{ doker_hub_login_client.user }} -p {{ doker_hub_login_client.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/client"
|