Ukrainian officials say they are prepared to extend indefinitely a ceasefire due to go into effect at midnight despite deadly attacks from Russian forces.