Commit af3ca3fc authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'harishsr-cleanup-regex-docs' into 'master'

Clarify cleanup policy regex examples

See merge request gitlab-org/gitlab!52259
parents 294349e5 e87d6d6d
...@@ -559,16 +559,22 @@ Here are examples of regex patterns you may want to use: ...@@ -559,16 +559,22 @@ Here are examples of regex patterns you may want to use:
v.+ v.+
``` ```
- Match tags that contain `master`: - Match only the tag named `master`:
```plaintext ```plaintext
master master
``` ```
- Match tags that either start with `v`, contain `master`, or contain `release`: - Match tags that are either named or start with `release`:
```plaintext ```plaintext
(?:v.+|master|release) release.*
```
- Match tags that either start with `v`, are named `master`, or begin with `release`:
```plaintext
(?:v.+|master|release.*)
``` ```
### Set cleanup limits to conserve resources ### Set cleanup limits to conserve resources
...@@ -649,7 +655,7 @@ If you see the following message: ...@@ -649,7 +655,7 @@ If you see the following message:
Check the regex patterns to ensure they are valid. Check the regex patterns to ensure they are valid.
You can use [Rubular](https://rubular.com/) to check your regex. GitLab uses [RE2 syntax](https://github.com/google/re2/wiki/Syntax) for regular expressions in the cleanup policy. You can test them with the [regex101 regex tester](https://regex101.com/).
View some common [regex pattern examples](#regex-pattern-examples). View some common [regex pattern examples](#regex-pattern-examples).
## Use the Container Registry to store Helm Charts ## Use the Container Registry to store Helm Charts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment