fix: avoid returning a numbered image tag if push is not enabled
This commit is contained in:
@@ -19,6 +19,10 @@ func TriggerDeployedAppImageRepo(appName string) error {
|
|||||||
|
|
||||||
// TriggerDeployedAppImageTag outputs the associated image tag to stdout
|
// TriggerDeployedAppImageTag outputs the associated image tag to stdout
|
||||||
func TriggerDeployedAppImageTag(appName string) error {
|
func TriggerDeployedAppImageTag(appName string) error {
|
||||||
|
if !isPushEnabled(appName) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
tagVersion := common.PropertyGet("registry", appName, "tag-version")
|
tagVersion := common.PropertyGet("registry", appName, "tag-version")
|
||||||
if tagVersion == "" {
|
if tagVersion == "" {
|
||||||
tagVersion = "1"
|
tagVersion = "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user