monasca-notification/playbooks/docker-publish.yml
Dobroslaw Zybort 34c75eb2c7 Push Docker image to Docker Hub
Change-Id: Iaf4045e62e3de92b874dbfbc22b8708f577990ef
Story: 2001694
Task: 30513
2019-04-15 15:10:54 +02:00

13 lines
415 B
YAML

---
- hosts: all
tasks:
- name: Login to Dockerhub
command: "docker login -u {{ doker_hub_login_notification.user }} -p {{ doker_hub_login_notification.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/notification"