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

No option to select firebase hosting target with firebase deployment pipe

Aditya Ekbote September 29, 2020

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
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 3, 2020

@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
Aditya Ekbote December 11, 2020

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

0 votes
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 6, 2020

@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

Aditya Ekbote October 6, 2020

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
AUG Leaders

Atlassian Community Events