Pregnancy and deployment

So I just found out I'm pregnant. The dad and I broke up and haven't talked in a couple weeks...he's leaving for military training for two months...do I tell him before he leaves tomorrow or wait until he gets back?