Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude QA / CI files from release using .gitattributes #41

Open
dkarlovi opened this issue Feb 5, 2024 · 0 comments
Open

Exclude QA / CI files from release using .gitattributes #41

dkarlovi opened this issue Feb 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dkarlovi
Copy link

dkarlovi commented Feb 5, 2024

✨ Feature request

Exclude all but the necessary files from the released package using .gitattributes

Motivation

It removes all but production files from the released package.

Example

https://github.com/symfony/config/blob/7.0/.gitattributes

Alternatives

The unnecessary files stay in the package.

Additional context

It's good practice to remove all but the strictly necessary files for production use from releases, this can typically substantially reduce the disk size (which is important for containerized apps), but it's all good hygiene practice.

@dkarlovi dkarlovi added the enhancement New feature or request label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant