Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

No option to select firebase hosting target with firebase deployment pipe

Edited

Hi,

I plan to create a pipeline to deploy a project to firebase hosting. The firebase deployment pipe plugin currently does not seem to have support for choosing the deployment target. This results in failed deployment.

 

Docs: https://firebase.google.com/docs/hosting/multisites
https://firebase.google.com/docs/cli/targets

Error: 

Error: Deploy target repo-name not configured for project firebase-project. Configure with:  firebase target:apply hosting repo-name <resources...>

 

2 answers

1 accepted

0 votes
Answer accepted

@Aditya Ekbote hello! try our latest release 0.8.0. If you want to enable multiple sites or specific site, use option

MULTI_SITES_CONFIG:
  • Deploying multiple sites at once
script:
  - pipe: atlassian/firebase-deploy:0.8.0
    variables:
      FIREBASE_TOKEN: $FIREBASE_TOKEN
      PROJECT_ID: 'myAwesomeProject'
      MESSAGE: 'Deploying myAwesomeProject'
      EXTRA_ARGS: '--only functions'
      MULTI_SITES_CONFIG: >
          [{
            "TARGET": "my-application-target",
            "RESOURCE": "my-appropriate-resource"
          },
          {
            "TARGET": "my-app-blog-target",
            "RESOURCE": "resource1.blog.com resource2.blog.com"
          }]
      DEBUG: 'true'
  • Deploying multiple sites at parallel steps:
- parallel:
  - step:
    script:
      - pipe: atlassian/firebase-deploy:0.8.0
        variables:
          FIREBASE_TOKEN: $FIREBASE_TOKEN
          PROJECT_ID: 'myAwesomeProject'
          MESSAGE: 'Deploying myAwesomeProject'
          EXTRA_ARGS: '--only functions'
          MULTI_SITES_CONFIG: >
              [{
                "TARGET": "my-application-target1",
                "RESOURCE": "my-appropriate-resource"
              }]
          DEBUG: 'true'
See more details in https://bitbucket.org/atlassian/firebase-deploy/src/master/ README and contact us in the case of more questions.
Regards, Galyna

Thanks for resolving this issue! I was able to setup our deployment pipelines successfully for multiple targets.

0 votes

@Aditya Ekbote thanks for reporting.

Yes, looks like it is nice feature to be supported in pipe. This is accepted as feature request, I will notify about the changes as soon as we release it.

Regards, Galyna

Thanks. This is actually a blocker to release to firebase projects with more than one hosting targets.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍂📹 Apptoberfest demo contest roundup: vote for your favorite demos!

Hi Community! The submissions are in (and listed below) for the 🍻🍂Apptoberfest🍂🍻 Demo Competition and it’s time for you to place your votes for the best: Analytics & reporting app demo ...

236 views 6 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you