Skip to content

Commit

Permalink
Set forceDelete:true on ECR
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehoban committed Jul 24, 2023
1 parent b27317f commit f0f4e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const repositories = new Map<string, aws.ecr.Repository>();
function getOrCreateRepository(imageName: string): aws.ecr.Repository {
let repository: aws.ecr.Repository | undefined = repositories.get(imageName);
if (!repository) {
repository = new aws.ecr.Repository(imageName.toLowerCase());
repository = new aws.ecr.Repository(imageName.toLowerCase(), { forceDelete: true });
repositories.set(imageName, repository);

// Set a default lifecycle policy such that at most a single untagged image is retained.
Expand Down

0 comments on commit f0f4e63

Please sign in to comment.