I think the secret for me is to keep busy
This, plus envisaging what WOULD happen if you succumbed to temptation. Picture it in your mind. You know the first drink would be nice but the rest would be increasingly awful, and you'd regret it.
Also, shopping just once a week helps, but do it when you are feeling good about yourself.
Can you tell your partner that the greatest Valentine's gift he can give you is not to drink himself?
Have you listened to This Naked Mind (Annie Grace) and Alcohol Explained (William Porter)