Respect .funcignore file rules
See original GitHub issuePatterns of .funcignore
file are ignored during deployment and everything is included under package folder.
Would be nice to exclude files in accordance to .funcignore
rules as it’s implemented in Azure Functions Core Tools
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Excluding a file in Azure Function from Azure Deployment
We have been unable to get .funcignore to work. Our alternative solution is. Remove "local.funcdebugging.json" from repo; Add a markdown ...
Read more >Best way to deploy code to a function app that is witin a virtual ...
Deployment is being done using the Azure/functions-action GitHub action. Run Azure/functions-action@v1. with: app-name: func-myfunctionname. package: abc-files- ...
Read more >function app deployment issue - Microsoft Q&A
I found an answer. I added 'respect-funcignore: true' to the workflow file and it worked. I don't think that there is any glitch...
Read more >Setting up commits filtering - AppVeyor
As both files match their respective rules. Include commits. only_commits.files allows starting a new AppVeyor build if any file modified in the push's...
Read more >Add support for custom handlers in Linux consumption plans
The relevant settings from the workflow file: ... STAGING_PUBLISH_PROFILE }} respect-funcignore: true ... And my workflow file looks like this:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for looking into this.
I gave it a try and I can still see
.funcignore
d files deployed to the target host.Here’s the repo to reproduce: https://github.com/maximivanov/azure-functions-cd-github-actions
respect-funcignore: true
is set on the functions-action in the workflow file. Among others,.funcignore
includes.gitignore
.Once cloud resources are provisioned (I use Terraform for that), I trigger the CD workflow in the repo.
Expected:
.gitignore
is not deployed. Actual: I can see.gitignore
in the app files section in the Portal.@N-Usha @Hazhzeng
@maximivanov I can confirm that with the workaround I’m using, files also don’t get deleted during Kudu ZIP deploy, so I believe yours is definitely the cleaner solution until this issue is fixed.
For the other issue, I think https://github.com/projectkudu/kudu/issues/3183 is the relevant issue to follow.