Go ahead and resign and best of luck in your new position. During a probation period, either party can end work in just a day's notice. It will not affect your new offer at all. Don't tell them you have an offer in hand.