Sign inSign up

clovernet/baget

By clovernet

•Updated almost 5 years ago

自建Nuget服务器

Image
0

2.4K

clovernet/baget repository overview

⁠简介

Baget是一款跨平台轻量级Nuget服务器。

⁠构建

docker run -d -p 5000:80 --name baget clovernet/baget

⁠配置ApiKey ( 修改Appsettings.config ):

{
  ...
  "ApiKey": "MyApiKey",  -- 指定后,所有操作必须附带ApiKey,否则无权操作
  "PackageDeletionBehavior": "Unlist",  -- Unlist:逻辑删除 ; HardDelete: 物理删除
  "AllowPackageOverwrites": false,  -- 是否允许覆盖相同版本
  ...
}

更多说明见官网 https://loic-sharma.github.io/BaGet/⁠

⁠使用

⁠创建Nuget包
nuget pack
⁠推送Nuget包
nuget push package.nupkg -Source http://localhost:5000/v3/index.json -k MyApiKey
⁠远程删除Nuget包
nuget delete package 1.0.0 -Source http://localhost:5000/v3/index.json -k MyApiKey 

Tag summary

Content type

Image

Digest

Size

104.5 MB

Last updated

almost 5 years ago

docker pull clovernet/baget