-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: networking mainnet fixes and ecr lcps (#5015) * fix: improve ecp to remove any tagged images * Radar token update (#4892) * Radar token update * update address for xerc20 * xRADAR added --------- Co-authored-by: Prathmesh <[email protected]> * feat: 5033 working linea connector (#5037) * fix: rename consensys to linea * fix: rename consensys to linea * fix: rename and verify * feat: enable linea goerli ops * chore: delete linea hub connector * chore: recreate linea hub connector --------- Co-authored-by: Carlo Mazzaferro <[email protected]> Co-authored-by: Sonmezturk <[email protected]> Co-authored-by: Prathmesh <[email protected]>
- Loading branch information
1 parent
157702c
commit e7e5273
Showing
104 changed files
with
7,838 additions
and
3,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
resource "aws_ecr_lifecycle_policy" "remove_old_images" { | ||
for_each = toset(var.repository_names) | ||
repository = each.value | ||
|
||
policy = <<EOF | ||
{ | ||
"rules": [ | ||
{ | ||
"rulePriority": 1, | ||
"description": "Expire main images that are not the last 50", | ||
"selection": { | ||
"tagStatus": "tagged", | ||
"tagPrefixList": ["main-"], | ||
"countType": "imageCountMoreThan", | ||
"countNumber": 50 | ||
}, | ||
"action": { | ||
"type": "expire" | ||
} | ||
}, | ||
{ | ||
"rulePriority": 2, | ||
"description": "Expire staging images that are not the last 20", | ||
"selection": { | ||
"tagStatus": "tagged", | ||
"tagPrefixList": ["staging-"], | ||
"countType": "imageCountMoreThan", | ||
"countNumber": 20 | ||
}, | ||
"action": { | ||
"type": "expire" | ||
} | ||
}, | ||
{ | ||
"rulePriority": 3, | ||
"description": "Expire testnet-prod images that are not the last 10", | ||
"selection": { | ||
"tagStatus": "tagged", | ||
"tagPrefixList": ["testnet-prod-"], | ||
"countType": "imageCountMoreThan", | ||
"countNumber": 10 | ||
}, | ||
"action": { | ||
"type": "expire" | ||
} | ||
}, | ||
{ | ||
"rulePriority": 4, | ||
"description": "Expire prod images that are not the last 5", | ||
"selection": { | ||
"tagStatus": "tagged", | ||
"tagPrefixList": ["prod-"], | ||
"countType": "imageCountMoreThan", | ||
"countNumber": 5 | ||
}, | ||
"action": { | ||
"type": "expire" | ||
} | ||
}, | ||
{ | ||
"rulePriority": 6, | ||
"description": "remove old images", | ||
"selection": { | ||
"tagStatus": "any", | ||
"countType": "sinceImagePushed", | ||
"countUnit": "days", | ||
"countNumber": 180 | ||
}, | ||
"action": { | ||
"type": "expire" | ||
} | ||
} | ||
] | ||
} | ||
EOF | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
variable "repository_names" { | ||
description = "ECR repository names" | ||
type = list(string) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.