ci: Set timeouts on various stages
Most of our stages take just a single minute to complete, while the standard timeout on gitlab CI is 60 minutes.
Set a 5 minute timeout on quick stages, and a 30 minute timeout on the image build step to ensure we fail fast and don't tie up CI resources.