[ Server ] [ Harbor ] - sync projects - 8
This commit is contained in:
@@ -261,18 +261,18 @@ func (hOp *HarborOperator) SyncProjectExec(funcArgs []string) (bool, []string) {
|
||||
Description: "",
|
||||
DestNamespace: "", // 可以指定目标 Harbor 中的特定项目,如果为空,则使用源项目名称
|
||||
DestNamespaceReplaceCount: nil,
|
||||
SrcRegistry: octopusSourceRegistry,
|
||||
DestRegistry: nil,
|
||||
Enabled: true,
|
||||
SrcRegistry: &model.Registry{
|
||||
ID: octopusSourceRegistry.ID,
|
||||
},
|
||||
DestRegistry: &model.Registry{
|
||||
ID: 0,
|
||||
},
|
||||
Enabled: true,
|
||||
Filters: []*model.ReplicationFilter{
|
||||
{
|
||||
Type: "name",
|
||||
Value: "cmii/**", // 根据需要同步的仓库进行调整
|
||||
},
|
||||
{
|
||||
Type: "name",
|
||||
Value: "rancher/**", // 根据需要同步的仓库进行调整
|
||||
},
|
||||
},
|
||||
ID: 0,
|
||||
Name: "octopus-sync-replication",
|
||||
|
||||
Reference in New Issue
Block a user