Compact ring-based X-ray source with on-orbit and on-energy laser-plasma injection