-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Summary
When using firebase deploy --only apphosting
in CI/CD environments like GitHub Actions, the CLI waits for the full rollout process to complete. This often exceeds CI job timeouts, leading to unnecessary cost and job failures, even though the CLI logs "It's safe to exit now."
Firebase App Hosting rollouts are asynchronous by nature. However, the CLI currently does not offer an option to exit gracefully once the rollout is triggered.
Why This Matters
In CI/CD pipelines:
- Time is billed (especially for self-hosted runners or usage-limited plans)
- Long-running deployments cause cost overruns or failed builds
- The CLI itself confirms that rollouts can continue in the background
Developers need a way to exit early once rollout starts, while still ensuring the deploy was triggered successfully.
Requested Feature
Please add a CLI option like:
--exit-after-rollout-start
--no-wait
--async
This flag should:
- Trigger the App Hosting deployment
- Output the rollout tracking URL
- Exit immediately with a success status
This will optimize CI/CD workflows, reduce runtime cost, and align with Firebase’s own messaging ("It's safe to exit now").
Current Workarounds (Unreliable)
- Using
continue-on-error: true
(may ignore actual failures) - Killing the deploy process after a
sleep
delay - Parsing CLI logs manually to detect rollout start
These approaches are fragile and not ideal for production pipelines.
Example Use Case
firebase deploy --only apphosting --project=my-project --async
<!-- DO NOT DELETE
validate_template=false
template_path=.github/ISSUE_TEMPLATE/feature_request.md
-->
<!--
Thank you for contributing to the Firebase community!
Have a feature request?
========================
Great, we love hearing how we can improve our products! However, GitHub is not the place to submit them. Please submit your feature requests to:
https://firebase.google.com/support/contact/bugs-features/
**Think you found a bug?** Please do not use this template - use the `🐛 Bug report` template.
Have a usage question?
=======================
We get lots of those and we love helping you, but GitHub is not the best place for them and they
will be closed. Here are some resources to get help:
- Start with the quickstart: https://firebase.google.com/docs/functions/write-firebase-functions
- Go through the guide: https://firebase.google.com/docs/functions/
- Read the full API reference: https://firebase.google.com/docs/reference/functions/
- Browse some examples: https://github.com/firebase/functions-samples
If the official documentation doesn't help, try asking through our official support channels:
https://firebase.google.com/support/
*Please avoid double posting across multiple channels!*
-->
Please submit feature requests through our [support page](https://firebase.google.com/support/troubleshooter/report/features/).