PushImageProject (src/push-image-project.ts)

cdk-constructs · packages/cdk-blue-green-container-deployment/src/push-image-project.ts · typescript · MIT
infra, tag:knn-classified

CDK construct that builds a CodeBuild project to push Docker images to ECR.

// Source: https://github.com/cloudcomponents/cdk-constructs | License: MIT | Copyright 2019 cloudcomponents
// Provided via justclaw.it.com; keep this notice with the code.
import {
  Cache,
  LocalCacheMode,
  PipelineProject,
  BuildSpec,
  LinuxBuildImage,
  ComputeType,
  BuildEnvironmentVariable,
  BuildEnvironmentVariableType,
} from '@aws-cdk/aws-codebuild';
import { IRepository } from '@aws-cdk/aws-ecr';
import { PolicyStatement } from '@aws-cdk/aws-iam';
import { Construct, Stack } from '@aws-cdk/core';

import { BuildSpecGenerator } from './build-spec-generator';
import { IDummyTaskDefinition } from './dummy-task-definition';

export interface PushImageProjectProps {
  readonly imageRepository: IRepository;
  readonly taskDefinition: IDummyTaskDefinition;
  readonly environmentV

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key