Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
abb23f10
Commit
abb23f10
authored
Jun 08, 2020
by
João Pereira
Committed by
Suzanne Selhorn
Jun 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add regex examples to container registry expiration policy docs
parent
235a9a86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
doc/user/packages/container_registry/index.md
doc/user/packages/container_registry/index.md
+30
-0
No files found.
doc/user/packages/container_registry/index.md
View file @
abb23f10
...
@@ -554,6 +554,36 @@ run the policy may get backed up or fail completely. It is recommended you only
...
@@ -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
policies for projects that were created before GitLab 12.8 if you are confident the amount of tags
being cleaned up will be minimal.
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
## Limitations
-
Moving or renaming existing Container Registry repositories is not supported
-
Moving or renaming existing Container Registry repositories is not supported
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment