We use a rewards credit card that gives us 3% cash back on all gas purchases (but with a cap of $12/mo, then it reverts to 1%).
A lot of RVers seem to plan their routing around Costco's/Sam's discount pumps... but in my experience, they don't offer diesel very often.
We also use GasBuddy on our iPhones to locate the best prices on fuel. Especially with diesel, prices can fluctuate wildly. We've seen up to .50 per gallon differences within stations just a mile apart from each other.