Congrats on making it through! At 5 months you still haven't been in a lot of these situations and to be blind sided like that isn't fun.
Without knowing your workplace I think you handled it well. I think you could have said "I don't drink k" and you should in the future. It might have seemed like it was drink or be fired but I would aged that wasn't the case.
Congrats on resisting!