How to stop resenting my husband

I resent my husband for lying to me over the years and betraying me (not cheating, but lying about online activity) and I can’t get over it. He apologizes but I feel betrayed. Oftentimes I can forget about it and act normally but then I remember how he’s made me feel and I get really angry and then he gets mad because he doesn’t know what else to do than apologize. Every time I catch him in a lie he vows to change but doesn’t. I love him more than anything and I want our relationship to work but I’m suffering everyday knowing I can’t even trust my own husband.