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