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...>
@Aditya Ekbote hello! try our latest release 0.8.0. If you want to enable multiple sites or specific site, use option
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'
- 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'
Thanks for resolving this issue! I was able to setup our deployment pipelines successfully for multiple targets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. This is actually a blocker to release to firebase projects with more than one hosting targets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.