Skip to content

Commit

Permalink
Added mention of autopublish and retain_repo_versions to the docs.
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
ipanova committed Dec 1, 2023
1 parent 7e4dc1a commit 2c75b02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/workflows/create_sync_publish.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ RPM Repositories support several additional options.
See :ref:`metadata_signing`.
- retain_package_versions:
The maximum number of versions of each package to keep; as new versions of packages are added by upload, sync, or copy, older versions of the same packages are automatically removed. A value of 0 means "unlimited".
- autopublish:
If set to True, will automatically create publications for new repository versions, and update any distributions pointing to this repository. When using this option, after repository has been created, point the distribution to it, namely set the `repository` field.

Pulpcore provides `retain_repo_versions` setting that can also be set. For example, if set to 1, it will make sure it will keep at minimum 1 repo version and rest will be automatically deleted, together with its associated publication.
It might happen though, that more than one repo version is kept, that's because these are protected versions and cannot be removed. A protected version is a version that is being currently distributed.

.. _create-remote:

Expand Down

0 comments on commit 2c75b02

Please sign in to comment.