Skip to content

Commit

Permalink
Merge branch 'main' into adotlambda
Browse files Browse the repository at this point in the history
  • Loading branch information
vasireddy99 committed Aug 17, 2023
2 parents c3408ea + 0bcc4b4 commit e510f9f
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 131 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ export class DefaultStagingStack extends Stack implements IStagingResources {
if (this.stagingRepos[asset.assetName] === undefined) {
this.stagingRepos[asset.assetName] = new ecr.Repository(this, repoName, {
repositoryName: repoName,
imageTagMutability: ecr.TagMutability.IMMUTABLE,
lifecycleRules: [{
description: 'Garbage collect old image versions',
maxImageCount: this.props.imageAssetVersionCount ?? 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@
"defaultresourcesmaxecrasset13112F7F9": {
"Type": "AWS::ECR::Repository",
"Properties": {
"ImageTagMutability": "IMMUTABLE",
"LifecyclePolicy": {
"LifecyclePolicyText": "{\"rules\":[{\"rulePriority\":1,\"description\":\"Garbage collect old image versions\",\"selection\":{\"tagStatus\":\"any\",\"countType\":\"imageCountMoreThan\",\"countNumber\":3},\"action\":{\"type\":\"expire\"}}]}"
},
Expand Down Expand Up @@ -693,6 +694,7 @@
"defaultresourcesmaxecrasset2904B88A7": {
"Type": "AWS::ECR::Repository",
"Properties": {
"ImageTagMutability": "IMMUTABLE",
"LifecyclePolicy": {
"LifecyclePolicyText": "{\"rules\":[{\"rulePriority\":1,\"description\":\"Garbage collect old image versions\",\"selection\":{\"tagStatus\":\"any\",\"countType\":\"imageCountMoreThan\",\"countNumber\":3},\"action\":{\"type\":\"expire\"}}]}"
},
Expand Down
Loading

0 comments on commit e510f9f

Please sign in to comment.