Martin Chacon Piza 2d6f0c1e73 Update docker-publish.yml for stable/wallaby
Change-Id: Ib98425a661378769dc41b6084afeddbb3fef9288
2021-04-07 13:37:25 +02:00

13 lines
441 B
YAML

---
- hosts: all
tasks:
- name: Login to Dockerhub
command: "docker login -u {{ doker_hub_login.user }} -p {{ doker_hub_login.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/base:{{ zuul.tag if zuul.pipeline == 'release' else 'wallaby'}}"