question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Respect .funcignore file rules

See original GitHub issue

Patterns 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
maximivanovcommented, Dec 18, 2020

Thanks for looking into this.

I gave it a try and I can still see .funcignored 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.

Screen Shot 2020-12-18 at 22 34 42

@N-Usha @Hazhzeng

1reaction
aaronadamsCAcommented, Dec 7, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found