Skip to content

Commit e4e24ab

Browse files
Kaixiang-AWSElad Ben-Israel
authored andcommitted
feat(codebuild): rename standard 1.0 image and add standard 2.0 image (#2541)
Fixes #2306
1 parent 4f7b48d commit e4e24ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/@aws-cdk/aws-codebuild/lib/project.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ export class Project extends ProjectBase {
629629
props.cacheBucket.grantReadWrite(this.role);
630630
}
631631

632-
this.buildImage = (props.environment && props.environment.buildImage) || LinuxBuildImage.UBUNTU_18_04_STANDARD_1_0;
632+
this.buildImage = (props.environment && props.environment.buildImage) || LinuxBuildImage.STANDARD_1_0;
633633

634634
// let source "bind" to the project. this usually involves granting permissions
635635
// for the code build role to interact with the source.
@@ -951,7 +951,7 @@ export interface BuildEnvironment {
951951
/**
952952
* The image used for the builds.
953953
*
954-
* @default LinuxBuildImage.UBUNTU_18_04_STANDARD_1_0
954+
* @default LinuxBuildImage.STANDARD_1_0
955955
*/
956956
readonly buildImage?: IBuildImage;
957957

@@ -1033,7 +1033,8 @@ export interface IBuildImage {
10331033
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
10341034
*/
10351035
export class LinuxBuildImage implements IBuildImage {
1036-
public static readonly UBUNTU_18_04_STANDARD_1_0 = new LinuxBuildImage('aws/codebuild/standard:1.0');
1036+
public static readonly STANDARD_1_0 = new LinuxBuildImage('aws/codebuild/standard:1.0');
1037+
public static readonly STANDARD_2_0 = new LinuxBuildImage('aws/codebuild/standard:2.0');
10371038
public static readonly UBUNTU_14_04_BASE = new LinuxBuildImage('aws/codebuild/ubuntu-base:14.04');
10381039
public static readonly UBUNTU_14_04_ANDROID_JAVA8_24_4_1 = new LinuxBuildImage('aws/codebuild/android-java-8:24.4.1');
10391040
public static readonly UBUNTU_14_04_ANDROID_JAVA8_26_1_1 = new LinuxBuildImage('aws/codebuild/android-java-8:26.1.1');

0 commit comments

Comments
 (0)