Fix zuul publish docker image job

Add tag to docker push command with specific branch name

Change-Id: I878f30ccdbd4244ec49c551ee24acd5426dfb6c9
This commit is contained in:
Martin Chacon Piza 2021-04-07 14:13:49 +02:00
parent 09709ed29b
commit cf4d9cc470

View File

@ -9,4 +9,4 @@
shell: "docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep monasca"
- name: Push to Docker Hub all tags
shell: "docker push monasca/client:{{ zuul.tag if zuul.pipeline == 'release' else zuul.branch }}"
shell: "docker push monasca/client:{{ zuul.tag if zuul.pipeline == 'release' else 'master'}}"