From d1728a4653c84bf4b858feb962d6d21d714e187b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 5 Aug 2021 01:12:30 -0400 Subject: [PATCH] fix: avoid returning a numbered image tag if push is not enabled --- plugins/registry/triggers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/registry/triggers.go b/plugins/registry/triggers.go index c6ecda4bf..00ddcb6c7 100644 --- a/plugins/registry/triggers.go +++ b/plugins/registry/triggers.go @@ -19,6 +19,10 @@ func TriggerDeployedAppImageRepo(appName string) error { // TriggerDeployedAppImageTag outputs the associated image tag to stdout func TriggerDeployedAppImageTag(appName string) error { + if !isPushEnabled(appName) { + return nil + } + tagVersion := common.PropertyGet("registry", appName, "tag-version") if tagVersion == "" { tagVersion = "1"