I felt the same way about the gym. Now I go 3-4 times a week and are in great shape.
There's a few things I've optimized that make it real easy and sticky as a habit:
1. No cardio. I'd always procrastinate going to the gym because I'd always row or run on a treadmill to "warm up" before lifting. I dropped the requirement to "warm up" and just get straight into lifting. This was probably the single most impactful change that made me go more.
2. Wear clothes to work that I can go to the gym in. Have a few sets of pants that are gym-ready, wear a t-shift, wear shoes that can be used at the gym. This removes another element of friction "damn, I have to go change, etc." Now I just walk in, drop my bag, and start lifting.
3. Use Strong App with 3 x different workouts I created myself and have iterated on over time. Can't recommend this app any more strongly (pun not intended). I couldn't find a workout app that fitted how I wanted to track my progress and sets. I sat down and wrote PRD for the perfect workout app. I then stumbled upon Strong, and it satisfied all the reqs in the PRD + many more useful features.
There's a few things I've optimized that make it real easy and sticky as a habit: