From 952c4c12fc67ff998003b35b75c2c54b4b69f5f2 Mon Sep 17 00:00:00 2001 From: Martin Chacon Piza Date: Mon, 8 Feb 2021 12:28:32 +0100 Subject: [PATCH] Fix zuul publish docker image job Add tag to docker push command Change-Id: I6deeb7f5205d045e45c70729c87168cc6445534a --- playbooks/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/docker-publish.yml b/playbooks/docker-publish.yml index f12899e..f539540 100644 --- a/playbooks/docker-publish.yml +++ b/playbooks/docker-publish.yml @@ -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" + shell: "docker push monasca/client:{{ zuul.tag if zuul.pipeline == 'release' else zuul.branch }}"