Building a solar panel for green house,how do i keep paint on glass?

i painted glass but it keeps pealing off.what do i do to make it stick?