From bcb469e8dcdcb5872997cf29494661ad1601749f Mon Sep 17 00:00:00 2001 From: Martin Chacon Piza Date: Tue, 16 Feb 2021 17:55:36 +0100 Subject: [PATCH] Fix zuul publish docker image job Add tag to docker push command with specific branch name Change-Id: If51a4e21476750faac7401e57dbd1e03e37a2fd8 --- 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 de7830d..4e3afb2 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/thresh:{{ zuul.tag if zuul.pipeline == 'release' else zuul.branch }}" + shell: "docker push monasca/thresh:{{ zuul.tag if zuul.pipeline == 'release' else 'master'}}"