artifactory logo
artifactory v2.11.0, Jan 24 23

Artifactory

The Artifactory provider for Pulumi can be used to provision any of the cloud resources available in Artifactory. The Artifactory provider must be configured with credentials to deploy and update resources in Artifactory.

Example

const artifactory = require("@pulumi/artifactory")

new artifactory.LocalRepository('pulumipus', {
    key: "pulumipus", // this key can be the name of your repository
    packageType: "docker"
})
import * as artifactory from "@pulumi/artifactory";

new artifactory.LocalRepository('pulumipus', {
    key: "pulumipus", // this key can be the name of your repository
    packageType: "docker"
})
import pulumi_artifactory as artifactory

my_local = artifactory.LocalRepository("pylumipus",
                                       key="pylumipus",
                                       package_type="npm")
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    artifactory "github.com/pulumi/pulumi-artifactory/sdk/go/artifactory"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		repo, err := artifactory.NewLocalRepository(ctx, "golumipus", &artifactory.LocalRepositoryArgs{
			Key:         pulumi.String("golumipus"),
			PackageType: pulumi.String("npm"),
		})
		if err != nil {
			return err
		}

		return nil
	})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Artifactory;

await Deployment.RunAsync(() =>
{
    var repo = new LocalRepository("cslumipus", new LocalRepositoryArgs
    {
        Key = "cslumipus",
        PackageType = "npm",
    });
});