diff --git a/src/main/java/kr/co/mcmp/service/oss/repository/nexus/NexusRepositoryService.java b/src/main/java/kr/co/mcmp/service/oss/repository/nexus/NexusRepositoryService.java index 9cd3020..2055e79 100644 --- a/src/main/java/kr/co/mcmp/service/oss/repository/nexus/NexusRepositoryService.java +++ b/src/main/java/kr/co/mcmp/service/oss/repository/nexus/NexusRepositoryService.java @@ -7,6 +7,7 @@ import org.springframework.stereotype.Service; import java.util.List; +import java.util.stream.Collectors; @Service @RequiredArgsConstructor @@ -16,9 +17,15 @@ public class NexusRepositoryService implements CommonRepositoryService { @Override public List getRepositoryList() { - return repositoryAdapterService.getRepositoryList(); + return repositoryAdapterService.getRepositoryList().stream() + .filter(t -> "hosted".equals(t.getType()) && + ("docker".equals(t.getFormat()) || + "raw".equals(t.getFormat()) || + "helm".equals(t.getFormat()))) + .collect(Collectors.toList()); } + @Override public CommonRepository.RepositoryDto getRepositoryByName(String name) { return repositoryAdapterService.getRepositoryByName(name);