Aylton Almeida
Aylton Almeida

Reputation: 569

Firebase Hosting deploy with Google Cloud Build throwing "No such file or directory" error

I built a simple ReactJs app and tried using Google Cloud Build to deploy it as soon as I push a new commit to the master branch on Github. For that I added an "On push to master" trigger and followed every step from here to configure my Google Cloud and Local Project. In the end I created a cloudbuild.yaml file with the following content:

cloudbuild.yaml content

After a new commit and push the cloud build logs a correct npm install and npm run build, but the firebase stops at the following step.

Cloud Build Error Log

I didn't understand which file/directory is missing, nor how to fix it. Could anyone help me a little? Thanks in advance.

Upvotes: 2

Views: 430

Answers (1)

Aylton Almeida
Aylton Almeida

Reputation: 569

So after a whole day of work I found out the problem. Apparently when you generate the firebase image mentioned in the tutorial all its files need to use End of line LF, but in windows it sets all of them to CRLF. I solved the problem using the WSL terminal in windows.

Upvotes: 4

Related Questions