How to deploy from an artifact registry to Firebase Hosting

155 Views Asked by At

I have this app that has its builds uploaded to an artifact registry, and I wish to deploy the latest artifact to Firebase Hosting automatically, via CD script.

But... Firebase doesn't seem to support hosting artifacts directly from a registry, like this. All the documentation and tutorials I've found are about building and deploying the app from the pipeline (i.e. having the files in a folder inside the build container).

I managed to work around this by actually downloading the artifact inside the pipeline, extracting it, initializing firebase-tools and then deploying. Sketchy.

Is it possible to configure a pipeline to directly upload (deploy) an artifact to Firebase hosting?


extra details that I'm not sure if are important:

  • I'm uploading the build (no source) to an NPM registry
  • which is Google Artifact Registry
  • and using Google Cloud Build for the CD pipeline
  • the app is a React frontend
  • yeah
0

There are 0 best solutions below