Nail one’s colours to the mast

Meaning: To make your position or opinion clear and public.

Example: He nailed his colours to the mast by publicly supporting the campaign.