refactor: skip image fetching when deploys are skipped

This commit is contained in:
Jose Diaz-Gonzalez
2021-08-01 16:07:26 -04:00
parent a62f04fa7e
commit 302537efd2

View File

@@ -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}...)
}