Skip to content

Commit 1ecd986

Browse files
committed
lifecycle policy
1 parent 496ab54 commit 1ecd986

File tree

2 files changed

+9
-59
lines changed

2 files changed

+9
-59
lines changed

ansible/ecr-lifecycle/ecr_lifecycle.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,28 @@
99
"countType": "imageCountMoreThan",
1010
"countNumber": 800
1111
},
12-
"action": {
13-
"type": "expire"
14-
}
12+
"action": { "type": "expire" }
1513
},
1614
{
1715
"rulePriority": 2,
18-
"description": "Keep the 5 most recent build images - AMEND NUMBER AFTER TEST ",
16+
"description": "Never expire the 'latest' tag",
1917
"selection": {
2018
"tagStatus": "tagged",
21-
"tagPrefixList": ["*"],
19+
"tagPrefixList": ["latest"],
2220
"countType": "imageCountMoreThan",
23-
"countNumber": 800
21+
"countNumber": 9999
2422
},
25-
"action": {
26-
"type": "expire"
27-
}
23+
"action": { "type": "expire" }
2824
},
2925
{
3026
"rulePriority": 3,
31-
"description": "Never expire the 'latest' tag",
27+
"description": "Keep the 5 most recent build images (all tags) - AMEND NUMBER AFTER TEST",
3228
"selection": {
33-
"tagStatus": "tagged",
34-
"tagPrefixList": ["latest"],
29+
"tagStatus": "any",
3530
"countType": "imageCountMoreThan",
36-
"countNumber": 9999
31+
"countNumber": 800
3732
},
38-
"action": {
39-
"type": "expire"
40-
}
33+
"action": { "type": "expire" }
4134
}
4235
]
4336
}

ansible/roles/build-ecs-proxies/files/ecr_lifecycle.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)