After deploying sites with drupal artifact builder, the following folders are marked as untracked:
- web/sites/*/settings.local.php
- web/sites/*/files
- private-files
- tmp
- Some other folders project-specific.
All this files or folders are needed to be kept in the deployed instances without risk of accidentally deleting it. having this files as untracked force any action done with git to prevent deleting them.
In the previous releases these files were git ignored. We should bring back this for only these folders. It makes sense ignoring them as artifact build only files from codebase, but it can't build files with credentials or binaries.
Proposed resolution
- After cleaning up the files, append a .gitignore with the most common routes:
- {docroot}/sites//settings..php
- {docroot}/sites/*/files
- {docroot}/sites/*/local.drush.yml
This can be done either ad-hoc, or reading the paths in sites/*/settings.php.
- Additionally, allow configure
ignore in command and .drupal-artifact-builder.yml with project-specific paths.
After deploying sites with drupal artifact builder, the following folders are marked as untracked:
All this files or folders are needed to be kept in the deployed instances without risk of accidentally deleting it. having this files as untracked force any action done with git to prevent deleting them.
In the previous releases these files were git ignored. We should bring back this for only these folders. It makes sense ignoring them as artifact build only files from codebase, but it can't build files with credentials or binaries.
Proposed resolution
This can be done either ad-hoc, or reading the paths in sites/*/settings.php.
ignorein command and .drupal-artifact-builder.yml with project-specific paths.