Skip to content

Commit

Permalink
Merge pull request #243 from komtaki/feature/update-ecr-expire-lifecycle
Browse files Browse the repository at this point in the history
chore: update ecr lifecycle policy to expire old tag
  • Loading branch information
ayuki-joto authored Jun 18, 2021
2 parents 4f65bbd + 916e06d commit 4b290b5
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 4b290b5

Please sign in to comment.