monasca-api/playbooks/docker-publish.yml
Dobroslaw Zybort de0e82ebca Fix docker hub login variable
Change-Id: Ibfef478998981956378f9082adcae95db8b9401d
Story: 2001694
Task: 29513
2019-02-20 08:43:00 +01:00

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"