Skip to content

Commit

Permalink
chore: update ecr lifecycle policy to expire old tag
Browse files Browse the repository at this point in the history
  • Loading branch information
komtaki committed Jun 8, 2021
1 parent 88370bd commit 916e06d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .cloudformation/ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,36 @@ Resources:
"action": {
"type": "expire"
}
},
{
"action": {
"type": "expire"
},
"selection": {
"countType": "imageCountMoreThan",
"countNumber": 7,
"tagStatus": "tagged",
"tagPrefixList": [
"staging-"
]
},
"description": "stagingイメージの削除",
"rulePriority": 2
},
{
"action": {
"type": "expire"
},
"selection": {
"countType": "imageCountMoreThan",
"countNumber": 7,
"tagStatus": "tagged",
"tagPrefixList": [
"production-"
]
},
"description": "productionイメージの削除",
"rulePriority": 3
}
]
}

0 comments on commit 916e06d

Please sign in to comment.