Yielding behavior of repulsion- and attraction-dominated colloidal glasses