Oil prices are rising amid ongoing military action in the Middle East and are set to end the week with a sharp gain.