Add local npm kind and npm virtual #67
@@ -82,6 +82,11 @@ locals {
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "local_helm/")
|
||||
}
|
||||
local_npm = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
if startswith(file_path, "local_npm/")
|
||||
}
|
||||
local_docker = {
|
||||
for file_path, content in local.all_configs :
|
||||
trimsuffix(basename(file_path), ".yaml") => content
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
description: "Internal npm packages"
|
||||
@@ -0,0 +1,5 @@
|
||||
package_type: npm
|
||||
description: "Virtual npm registry over internal and public packages — member order is priority order for duplicate versions"
|
||||
members:
|
||||
- npm-internal
|
||||
- npmjs
|
||||
@@ -32,6 +32,7 @@ inputs = {
|
||||
local_pypi = local.config.local_pypi
|
||||
local_rpm = local.config.local_rpm
|
||||
local_helm = local.config.local_helm
|
||||
local_npm = local.config.local_npm
|
||||
local_docker = local.config.local_docker
|
||||
local_generic = local.config.local_generic
|
||||
virtual = local.config.virtual
|
||||
|
||||
@@ -176,6 +176,13 @@ resource "artifactapi_local_helm" "this" {
|
||||
description = each.value.description
|
||||
}
|
||||
|
||||
resource "artifactapi_local_npm" "this" {
|
||||
for_each = var.local_npm
|
||||
|
||||
name = each.key
|
||||
description = each.value.description
|
||||
}
|
||||
|
||||
resource "artifactapi_local_docker" "this" {
|
||||
for_each = var.local_docker
|
||||
|
||||
|
||||
@@ -179,6 +179,14 @@ variable "local_helm" {
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "local_npm" {
|
||||
description = "Map of local npm registries"
|
||||
type = map(object({
|
||||
description = optional(string, "")
|
||||
}))
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "local_generic" {
|
||||
description = "Map of local generic (raw-file) repositories"
|
||||
type = map(object({
|
||||
|
||||
Reference in New Issue
Block a user