Skip to content

Untrackable folders and files are not being ignored since Drupal artifact builder 3 #31

@omarlopesino

Description

@omarlopesino

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

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

  1. Additionally, allow configure ignore in command and .drupal-artifact-builder.yml with project-specific paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions