Cloud Build doesn't recognize this private key either using hardcoded newlines or '\n'.
so I had to add a new step to write a .env inside the builder provider. and this firebase-admin script which loads the private key then loads it perfectly.