monasca-persister/playbooks/docker-publish.yml
Dobroslaw Zybort fc9a45f36f Push Docker image to Docker Hub
Change-Id: Ib49cc2a23627cf7bd15d875199efe629b8194670
Story: 2001694
Task: 30512
2019-04-15 15:04:28 +02:00

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"