Hole up and hope zombies wear themselves out when they run out of food. Unless zombies are the infected with a virus gives them some kind of photosynthesis powers most zombies in fiction violate the first law of thermodynamics. If they are magic walking revived dead people then I would find the voodoo practitioner and ask them politely to reverse it (I dont want to be eternally cursed from killing them)