I recently set up another project on GitLab with Angular and while configuring the CI process to automatically deploy to different staging & production environment on Firebase, I found some missing parts on my article on “Create a CD pipeline with Angular, GitLab and Firebase.

Specifically I run into issues where the CI server wasn’t able to connect to Firebase. Strange enough however I didn’t get any authentication error, but rather errors like “HTTP error: 404, The specified project was not found”.

In the end the solution was to not protect the FIREBASE_DEPLOY_KEY variable in GitLab, which doesn’t mean it will be exposed on the CI server log (which I thought).

Adding the firebase token to GitLab