From 99f6cf2b1cf906bf22e5eb54e782736c4cf79463 Mon Sep 17 00:00:00 2001 From: Martin Chacon Piza Date: Tue, 2 Feb 2021 15:41:54 +0100 Subject: [PATCH] Fix zuul publish docker image job Add tag to docker push command Change-Id: I531c7349f51248bbc6050755d821f444d75141a5 --- playbooks/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/publish.yml b/playbooks/publish.yml index fc9507a6..7b7d86d6 100644 --- a/playbooks/publish.yml +++ b/playbooks/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/base" + shell: "docker push monasca/base:{{ zuul.tag if zuul.pipeline == 'release' else zuul.branch }}"