monasca-thresh/playbooks/docker-publish.yml
Dobroslaw Zybort 78c66d7f2e Push Docker image to Docker Hub from Zuul
Story: 2001694
Task: 36260

Change-Id: I0717cc775fa1d7b38d14ade5c51996740d1b7e26
Depends-On: https://review.opendev.org/649298/
2019-08-12 13:52:59 +02:00

13 lines
399 B
YAML

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