Firebase multisite deployment within same project

Is it possible to specify a specific target (site) within a firebase project . Since firebase hosting supports multi site deployment.

I have a firebase project say (example-app) which has two sites within firebase hosting say
site 1: dev.example-app.com
site 2: prod.example.com )

How to specify i want to deploy to site 1 or site 2 in travis config …?

Travis supports if the two sites are from different project . My question is “Is it possible for same project with multi site setup”

reference : https://firebase.google.com/docs/hosting/multisites

Set up multiple deployment providers, each for the projects you want to deploy.

https://docs.travis-ci.com/user/deployment/#deploying-to-multiple-providers
https://docs.travis-ci.com/user/deployment/firebase/

I saw this one @BanzaiMan . I knew how to do setup multiple project . My question was how to do for a single firebase project which has multi site setup . Firebase hosting supports to deploy multiple site in same project .

In Travis , we have “project” key to do at project level like below

deploy:
  provider: firebase
  token:
    secure: "YOUR ENCRYPTED token"
  project: "myapp-example"

I liked to specify target too , like if i have two targets (sites) within same project “myapp-example”

site 1: dev.myapp-example.com
site 2: prod.myapp-example.com – this is default

we need something like

deploy:
  provider: firebase
  token:
    secure: "YOUR ENCRYPTED token"
  project: "myapp-example"
    target: "dev.myapp-example.com"

Firebase reference :
https://firebase.google.com/docs/hosting/multisites

Use case references :


Oh, I see. You need to pass the --only flag. This is not possible at the moment. Your PR is welcome.

Yes @BanzaiMan

Below is the PR

Test build Result:
https://travis-ci.org/karthikbalajikb/dpl/builds/549446801

Thanks