Updated on 2024-10-16 GMT+08:00

Configuring Deployment Policies

The self-hosted repo supports three version policies: Allow redeploy, Disable redeploy, and Read-only. You can set whether to allow artifacts in the same path to be uploaded and overwrite the original package.

  1. Go to the self-hosted repo page. In the left pane, click the name of the target repository.
  2. Click Settings on the right of the page and click the Deployment Policies tab.

    • Allow redeploy (enabled by default): Artifacts in the same path can be uploaded, replacing the original package.
    • Disable redeploy: Artifacts in the same path cannot be uploaded.
    • Read-only: Artifacts cannot be uploaded, updated, or deleted. You can download an uploaded artifact.

  3. Once you complete the settings, they are automatically saved by the system.