refactor: skip image fetching when deploys are skipped
This commit is contained in:
1 parent
a62f04fa7e
commit
302537efd2
1 file changed
+4
-4
@@ -395,6 +395,10 @@ func scaleSet(appName string, skipDeploy bool, processTuples []string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if skipDeploy {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
if !common.IsDeployed(appName) {
|
if !common.IsDeployed(appName) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@@ -404,10 +408,6 @@ func scaleSet(appName string, skipDeploy bool, processTuples []string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if skipDeploy {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return common.PlugnTrigger("release-and-deploy", []string{appName, imageTag}...)
|
return common.PlugnTrigger("release-and-deploy", []string{appName, imageTag}...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user