Oil advanced as traders tracked tensions between Israel and Iran, with strikes continuing amid US efforts to broker a cease-fire.