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
dbd3680c
Commit
dbd3680c
authored
Apr 19, 2021
by
Harsh Chouraria
Committed by
Nick Gaskill
Apr 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add valid values for cadence
parent
93f3c7e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
doc/api/projects.md
doc/api/projects.md
+1
-1
doc/user/packages/container_registry/index.md
doc/user/packages/container_registry/index.md
+8
-0
No files found.
doc/api/projects.md
View file @
dbd3680c
...
...
@@ -1125,7 +1125,7 @@ POST /projects
|
`build_timeout`
| integer |
**{dotted-circle}**
No | The maximum amount of time, in seconds, that a job can run. |
|
`builds_access_level`
| string |
**{dotted-circle}**
No | One of
`disabled`
,
`private`
, or
`enabled`
. |
|
`ci_config_path`
| string |
**{dotted-circle}**
No | The path to CI configuration file. |
|
`container_expiration_policy_attributes`
| hash |
**{dotted-circle}**
No | Update the image cleanup policy for this project. Accepts:
`cadence`
(string),
`keep_n`
(integer),
`older_than`
(string),
`name_regex`
(string),
`name_regex_delete`
(string),
`name_regex_keep`
(string),
`enabled`
(boolean). |
|
`container_expiration_policy_attributes`
| hash |
**{dotted-circle}**
No | Update the image cleanup policy for this project. Accepts:
`cadence`
(string),
`keep_n`
(integer),
`older_than`
(string),
`name_regex`
(string),
`name_regex_delete`
(string),
`name_regex_keep`
(string),
`enabled`
(boolean).
Valid values for
`cadence`
are:
`1d`
(every day),
`7d`
(every week),
`14d`
(every two weeks),
`1month`
(every month), or
`3month`
(every quarter).
|
|
`container_registry_enabled`
| boolean |
**{dotted-circle}**
No | Enable container registry for this project. |
|
`default_branch`
| string |
**{dotted-circle}**
No | The
[
default branch
](
../user/project/repository/branches/default.md
)
name. |
|
`description`
| string |
**{dotted-circle}**
No | Short project description. |
...
...
doc/user/packages/container_registry/index.md
View file @
dbd3680c
...
...
@@ -636,6 +636,14 @@ Examples:
curl
--request
PUT
--header
'Content-Type: application/json;charset=UTF-8'
--header
"PRIVATE-TOKEN: <your_access_token>"
--data-binary
'{"container_expiration_policy_attributes":{"cadence":"1month","enabled":true,"keep_n":1,"older_than":"14d","name_regex":"","name_regex_delete":".*","name_regex_keep":".*-master"}}'
"https://gitlab.example.com/api/v4/projects/2"
```
Valid values for
`cadence`
when using the API are:
-
`1d`
(every day)
-
`7d`
(every week)
-
`14d`
(every two weeks)
-
`1month`
(every month)
-
`3month`
(every quarter)
See the API documentation for further details:
[
Edit project
](
../../../api/projects.md#edit-project
)
.
### Use with external container registries
...
...
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