fix: avoid returning a numbered image tag if push is not enabled

This commit is contained in:
Jose Diaz-Gonzalez
2021-08-05 01:12:30 -04:00
parent 13608df0ef
commit d1728a4653

View File

@@ -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"