Skip to content

Regex/glob support in prefixes configuration #1932

@indykoning

Description

@indykoning

Problem Statement

For our projects we use atomic/zero-downtime deployments, meaning the location of the code changes. E.g:

  • /path/to/project/releases/16
  • /path/to/project/releases/17
  • /path/to/project/releases/18

Right now this would require us to update the prefixes config every time

Solution Brainstorm

What would really help here would be to allow regexes in the prefix config, allowing us to go from

[
    'prefixes' => [
        '/path/to/project/releases/16'/,
        '/path/to/project/releases/17'/,
        '/path/to/project/releases/18/',
    ]
]

to

[
    'prefixes' => [
        '/path/to/project/releases/[0-9]+/', // regex
        '/path/to/project/releases/*/', // or Glob
    ]
]

(due to paths already starting and ending with /, implementing globs might be an easier solution)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions