There is some evidence to suggest that herpes virus could stay alive
for a few hours if on a warm, moist environmental surface, but not a tube of anything
for months. I'm not clear why anyone would use an antibiotic cream on a viral cold sore, either, but that's a different story completely. The herpes virus needs cells in which to live and there would be no support for the virus in the circumstance that you describe.