A UK GHIC or UK EHIC does not cover you for treatment you have while you're on board a cruise, even if the vessel is docked.
If you’re taken to a hospital for treatment inland, you may be entitled to state provided medical care using your UK GHIC or UK EHIC.