Martin Chacon Piza 99f6cf2b1c Fix zuul publish docker image job
Add tag to docker push command

Change-Id: I531c7349f51248bbc6050755d821f444d75141a5
2021-02-02 15:41:54 +01:00

13 lines
444 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 zuul.branch }}"