func GetBuildImage(app provision.App) (string, error) {
	if usePlatformImage(app) {
		return getPlatformImage(app)
	}
	appImageName, err := AppCurrentImageName(app.GetName())
	if err != nil {
		return getPlatformImage(app)
	}
	return appImageName, nil
}
func GetBuildImage(app provision.App) (string, error) {
	if usePlatformImage(app) {
		return getPlatformImage(app)
	}
	appImageName, err := AppCurrentImageName(app.GetName())
	if err != nil {
		return getPlatformImage(app)
	}
	return appImageName, nil
}
func GetBuildImage ( app provision . App ) ( string , error ) { if usePlatformImage ( app ) { return getPlatformImage ( app ) } appImageName , err := AppCurrentImageName ( app . GetName ( ) ) if err != nil { return getPlatformImage ( app ) } return appImageName , nil }
// GetBuildImage returns the image name from app or plaftorm.
// the platform image will be returned if:
// * there are no containers;
// * the container have an empty image name;
// * the deploy number is multiple of 10.
// in all other cases the app image name will be returned.
GetBuildImage returns the image name from app or plaftorm . the platform image will be returned if : * there are no containers ; * the container have an empty image name ; * the deploy number is multiple of 10 . in all other cases the app image name will be returned .