diff --git a/cli/internal/deploy.go b/cli/internal/deploy.go index 0ad337ff..877d80a6 100644 --- a/cli/internal/deploy.go +++ b/cli/internal/deploy.go @@ -84,13 +84,25 @@ func DeployOverview( {i18n.G("ENV VERSION"), formatter.BoldDirtyDefault(envVersion)}, {i18n.G("NEW DEPLOYMENT"), formatter.BoldDirtyDefault(toDeployVersion)}, {"", ""}, - {i18n.G("SECRETS"), secrets}, - {"", ""}, - {i18n.G("CONFIGS"), configs}, - {"", ""}, {i18n.G("IMAGES"), images}, } + if len(secrets) > 0 { + secretsRows := [][]string{ + {"", ""}, + {i18n.G("SECRETS"), secrets}, + } + rows = append(rows, secretsRows...) + } + + if len(configs) > 0 { + configsRows := [][]string{ + {"", ""}, + {i18n.G("CONFIGS"), configs}, + } + rows = append(rows, configsRows...) + } + deployType := getDeployType(deployedVersion, toDeployVersion) overview := formatter.CreateOverview(i18n.G("%s OVERVIEW", deployType), rows)