Commit 3b4e82b0 authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'docs/regex-examples-container-registry-expiration-policy' into 'master'

Add regex examples to container registry expiration policy docs

See merge request gitlab-org/gitlab!33945
parents d8593a19 abb23f10
......@@ -554,6 +554,36 @@ run the policy may get backed up or fail completely. It is recommended you only
policies for projects that were created before GitLab 12.8 if you are confident the amount of tags
being cleaned up will be minimal.
### Regex patterns
The patterns that define which tags should be preserved or removed are defined using regular expressions, both for the UI and the API.
Examples:
- Match all tags:
```plaintext
.*
```
- Match tags that start with `v`:
```plaintext
v.+
```
- Match tags that contain `master`:
```plaintext
master
```
- Match tags that either start with `v`, contain `master`, or contain `release`:
```plaintext
(?:v.+|master|release)
```
## Limitations
- Moving or renaming existing Container Registry repositories is not supported
......
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