Questions tagged [gcloudignore]

5 questions
3
votes
2 answers

git ignore not ignoring a file when using GCloud's gcloudignore

I have a rule to ignore secret.py (production.py in my case) and once I added .gcloudignore, github stopped following that rule... Is there some sort of a rule overriding between gitignore and gcloudignore that I am not aware of? my-project/ …
willer2k
  • 506
  • 1
  • 6
  • 17
1
vote
2 answers

gcloud functions deploy fails with .cloudignore file

When deploying a simple hello_world app to Google Cloud Functions using gcloud, I get the following error message: ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: Build error details not available It took me quite a…
Sebastian
  • 831
  • 2
  • 13
  • 36
0
votes
1 answer

Why do I manually need to add !package.json in .gcloudignore when setting **/package.json in .gitignore

I would like both git and gcloud to ignore all package.json files except the one in the base folder. I've set **/package.json in the .gitignore file which works fine except that gcloud also ignores the package.json in the base directory. I have…
sev
  • 1,500
  • 17
  • 45
0
votes
1 answer

gcloud builds submit does not update file

When I run the command, gcloud builds submit --tag gcr.io/[MY_TAG] it builds the image and returns a success message. However, when I run docker run gcr.io/[MY_TAG] I get an error on a line of a file that did exist before but I removed it and…
1man
  • 5,216
  • 7
  • 42
  • 56
-1
votes
1 answer

gcloud functions deploy ignores dot-files

My project folder is as follows: . ├── main.py ├── .keys main.py opens and read the content of .keys. I upload this project to GCP Functions as follows: gcloud functions deploy my-function --entry-point func --project my-project --runtime python37…