Martin Chacon Piza 06b5b2d626 Update docker-publish.yml for stable/xena
Change-Id: I2501bc10ca3099ef037de11adbe43200ad61c326
2022-01-27 19:31:53 +01:00

13 lines
438 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 'xena'}}"