I encountered a warning while deploying my web app, firebase tells me that the token is about to be deprecated and I recommend using google credentials.
Do you have any advice on how to setup the gitlab pipeline to use google credentials? I have not found a guide on this. This is my script.
At the moment I have configured a gitlab environment variable containing the token and it works (with warning).
I tried setting the GOOGLE_APPLICATION_CREDENTIALS environment variable in gitlab settings but I don't know the firebase command to use to deploy.
My solution is similar but as it is simpler I want to share with you
firebase-deploy:
image: node:20-alpine
stage: deploy
before_script:
- echo $GOOGLE_SERVICE_ACCOUNT > service-account.json
- export GOOGLE_APPLICATION_CREDENTIALS="service-account.json"
- npm i -g firebase-tools
script:
- firebase deploy
environment: production