It does depend on the fig variety. In general Looking at areas where figs grow well such as; S. Italy, Turkey, Egypt, Greece, Cypres ... thery seem to like temps from 32F to 90F, rich soils or access to soil nutrients through cracks in the rocks and gravel. Water only when they want it (winter to fill the water tables, spring and early summer for their growth). Low humidity for best tasting figs and less splitting.
For my climate mt etna type figs (and a few others such as Dalmatie) grow best in ground with winter protection.
Late ripening and cold sensitive figs prefer containers with attention to soil mix, nutrients, water and stored in a cool dark place for winter.
A greenhouse is great to start plantlings and use it to extend the season for the late ripening figs. But in the heat of the summer with my greenhouse hitting >120F the figs are outside and in winter with greenhouse approaching 0F they are stashed away in a safe insulated room.
However there are people growing figs in greenhouses so hopefully they can give you some practical advice.
Good luck on your project!