From 5104c9ebac38b81e415781d95a0c1089d676c6b1 Mon Sep 17 00:00:00 2001 From: Adrian Czarnecki Date: Tue, 19 Jan 2021 13:11:48 +0100 Subject: [PATCH] Fix zuul publish docker image job Add tag to docker push command with specific branch name Change-Id: I9c408f2198a017391decba04008f2d3bfec6525e --- 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 30ad0cf..a24ea1e 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/notification" + shell: "docker push monasca/notification:{{ zuul.tag if zuul.pipeline == 'release' else 'master'}}"