Skip to content

Way to have "wildcard matching" tags also be posible to use in protected_tags #133

@mrdntgrn

Description

@mrdntgrn

Describe the Feature

Support of wildcard matching protected tags

Expected Behavior

Right now the protected_tags variable allows to have list of image tags prefixes(like "prod" or "live") and no way to have "wildcard matching" protected tags, like semver format(*.*.*) or "*prod"

Use Case

There are cases when the protected tag is not just a prefixed ones("prod" or "live"), for example when the tags are dynamicaly generated based on smversion(like "2.0.1" or "1.0.0-alpha") or cases when we need to protect tags in wildcard format "*prod" or "*live"

Describe Ideal Solution

It will be great to allow to have wildcard matching terms/strings(like "*prod") be used in protected_tags list variable,
for example the following value for protected_tags variable be acceptable and wildcard ones be trated as wildcard match and non wildcard ones as prefix match:

["prod", "*prod", "*.*.*"]

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions