deploy-firebase | A GitHub Action to deploy to Firebase Hosting | Continuous Deployment library
kandi X-RAY | deploy-firebase Summary
kandi X-RAY | deploy-firebase Summary
A GitHub Action to deploy to Firebase Hosting
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of deploy-firebase
deploy-firebase Key Features
deploy-firebase Examples and Code Snippets
name: Build and Deploy
on:
push:
branches:
- main
jobs:
main:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Build Hugo
uses: lowply/build-
Community Discussions
Trending Discussions on deploy-firebase
QUESTION
According to the documentation google cloud build can build from google cloud storage or a repository. But I'm having a hard time finding documentation on how to use files I upload to google cloud storage in the build steps. My intention is for a website where my jekyll source code is in the repository and my images are in google cloud storage; I'd like to add the images to the jekyll output and then upload to firebase with these steps.
Thanks for any guidance provided!
...ANSWER
Answered 2021-Nov-26 at 08:05the firebase cli deploy command uses google cloud storage. They package your local files and upload them to cloud storage and the build process takes the files from there.
I don't think they thought about the process of 'merging' your repo files and files from cloud storage.
But you use the steps configuration for cloud build and have 1 step downloading assets from cloud storage with the gcloud cli.
QUESTION
The problem with deploying Firestore indexes is that they are long running operations. That means that a deployment call already returns, before all indexes have been updated (see this link). For example, when using Google Cloud Build:
...ANSWER
Answered 2021-Sep-15 at 06:25There is one gcloud command to check the status of the operation as mentioned in the document.
QUESTION
I have problem with deploying node.js (Angular) application from Bitbucket repository to Firebase using Cloud Build Trigger. I performed steps from this article - https://cloud.google.com/build/docs/deploying-builds/deploy-firebase
- Necessary APIs are turned on,
- Service account has all required permissions,
- Firebase community builder is deployed and visible in Container Registry,
- Cloudbuild.json file is added to repository,
- Cloud Build Trigger is created and it points to one specific branch of my repository.
Problem is that after running Cloud Build Trigger I receive following error: "Error: Not in Firebase app directory (could not locate firebase.json)"
What could be reason of such error? Is it possible to point to the trigger where in repository is firebase application and firebase.json file?
EDIT:
My cloudbuild.json file is quite simple:
ANSWER
Answered 2021-Mar-14 at 19:18I'm pretty sure that you aren't in the correct directory when you run the command. To check this, you can add this step
QUESTION
I have CICD for cloud functions as some of the functions require token (collection deletion), my pipeline takes care of that.
Since last release, the cloud build is failing to deploy functions as it's expecting some key press which can't be done during cloud build. The actual log error says the following:
"replace /workspace/.runtimeconfig.json? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL"
Locally I am able to run the Cloud Functions with Node 14, but on GCP I'm not able to find a fix for GCP Cloud Build.
**Note: **
I'm using latest packages as of today. firebase-tools package: 9.4.0
There are similar questions for deploying functions locally but none of them work for me as it's during Cloud Build. I'm using the guide here: https://cloud.google.com/build/docs/deploying-builds/deploy-firebase
ANSWER
Answered 2021-Mar-01 at 05:19Well the answers on other links mentioned above were correct indeed. What I didn't realize was that Docker image of node during build takes the latest automatically. Thus, now it was taking Node 15.xx version.
To fix this, just update Node version in the cloudbuild.yaml. For example following during npm install on GCP:
QUESTION
this is my first post here (maybe more later ^^)
So, here we are : I'm using Gitlab-CI, docker, makefile, firebase.
So in my Makefile :
...ANSWER
Answered 2020-Nov-13 at 14:29If your commit message contains end of lines you cannot pass it to your script as it is. Try, maybe, to substitute end of lines by another character, e.g. -
. Of course the way to do it depends on the shell that executes your CI scripts. If it is bash, for instance, the following should work:
QUESTION
Permissions recommended for the Cloud Build service account in the official Google documentation and the Firebase CLI community builder docs are insufficient:
- In the permissions table, locate the email ending with @cloudbuild.gserviceaccount.com, and click on the pencil icon.
- Add
Cloud Build Service Account
,Firebase Admin
andAPI Keys Admin roles
.
I still get the following error in Cloud Build when I do firebase deploy
:
Error: HTTP Error: 403, The caller does not have permission
What I've tried is different Firebase IAM roles, Editor
, and Owner
. So far only the Owner
role works. That is way too much privilege for a Cloud Build service account, and violates the least-privilege model.
Everything is in the same Google Cloud project.
Anyone know how to troubleshoot this? Or know which role/permission is missing?
...ANSWER
Answered 2020-Jul-14 at 12:15tl;dr seems like it was "an accidental permission expansion" that has been corrected.
I am able restrict the roles to:
Cloud Build Service Account
Firebase Admin
API Keys Admin
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install deploy-firebase
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page