Show / Hide Table of Contents

Enum RegistryType

The type of registry to use for the EcrBuildAndPublish action.

Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum RegistryType
Syntax (vb)
Public Enum RegistryType
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.ECR;

            Pipeline pipeline;
            IRepository repository;


            var sourceOutput = new Artifact();
            // your source repository
            var sourceAction = new CodeStarConnectionsSourceAction(new CodeStarConnectionsSourceActionProps {
                ActionName = "CodeStarConnectionsSourceAction",
                Output = sourceOutput,
                ConnectionArn = "your-connection-arn",
                Owner = "your-owner",
                Repo = "your-repo"
            });

            var buildAction = new EcrBuildAndPublishAction(new EcrBuildAndPublishActionProps {
                ActionName = "EcrBuildAndPublishAction",
                RepositoryName = repository.RepositoryName,
                RegistryType = RegistryType.PRIVATE,
                DockerfileDirectoryPath = "./my-dir",  // The path indicates ./my-dir/Dockerfile in the source repository
                ImageTags = new [] { "my-tag-1", "my-tag-2" },
                Input = sourceOutput
            });

            pipeline.AddStage(new StageOptions {
                StageName = "Source",
                Actions = new [] { sourceAction }
            });
            pipeline.AddStage(new StageOptions {
                StageName = "Build",
                Actions = new [] { buildAction }
            });

Synopsis

Fields

PRIVATE

Private registry.

PUBLIC

Public registry.

Fields

Name Description
PRIVATE

Private registry.

PUBLIC

Public registry.

Back to top Generated by DocFX