GoogleCloudPlatform / GoogleCloudPlatform/cloud-builders-community
[Firebase] Windows deploy error
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 848
- PR merge metrics
- No merged PRs in 30d
Description
## Affected builder image
`gcr.io/cloud-builders-community/firebase`
## Expected Behavior
Submitting a build from Windows should work.
## Actual Behavior
I get this error when following the [official Google tutorial](https://cloud.google.com/cloud-build/docs/deploying-builds/deploy-firebase#yaml):
`standard_init_linux.go:211: exec user process caused "no such file or directory"`
## Steps to Reproduce the Problem
1. Use Windows.
2. Run `git clone https://github.com/GoogleCloudPlatform/cloud-builders-community.git`
3. Run `cd cloud-builders-community/firebase`
4. Run `gcloud builds submit .`
5. Configure the `cloudbuild.yaml` file:
```
steps:
- name: gcr.io/project-id/firebase
args: ['deploy', '--project=project-id', '--only=hosting']
```
Where `project-id` is a valid project-id.
6. Run `gcloud builds submit .`
## Additional Info
**TO FIX:** I needed to change the line endings of `firebase.bash` to LF before submitting the community build to my project. More info [here](https://itnext.io/vue-firebase-google-cloud-how-to-set-up-your-ci-cd-pipeline-3b309ef37015) and [here](https://stackoverflow.com/questions/51508150/standard-init-linux-go190-exec-user-process-caused-no-such-file-or-directory#comment93115660_52665687).
Contributor guide
Assessment
This issue has not been assessed yet.