mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
deploy container registry
This commit is contained in:
parent
1a640d6d01
commit
cc76f8502b
2 changed files with 8 additions and 8 deletions
10
.github/workflows/deploy_terraform.yml
vendored
10
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -57,8 +57,8 @@ jobs:
|
||||||
cd infrastructure/terraform/shared
|
cd infrastructure/terraform/shared
|
||||||
terraform plan -var-file=dev.tfvars
|
terraform plan -var-file=dev.tfvars
|
||||||
|
|
||||||
# # only run once
|
# only run once
|
||||||
# - name: Terraform Apply (shared)
|
- name: Terraform Apply (shared)
|
||||||
# run: |
|
run: |
|
||||||
# cd infrastructure/terraform/shared
|
cd infrastructure/terraform/shared
|
||||||
# terraform apply -auto-approve -var-file=dev.tfvars
|
terraform apply -auto-approve -var-file=dev.tfvars
|
||||||
|
|
@ -25,14 +25,14 @@ resource "aws_ecr_lifecycle_policy" "my_repository_policy" {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
# 2️⃣ Expire everything else beyond the most recent 20 images
|
# 2️⃣ Expire everything else beyond the most recent 10 images
|
||||||
{
|
{
|
||||||
rulePriority = 2
|
rulePriority = 2
|
||||||
description = "Expire old non-protected images"
|
description = "Retain only the last 10 images" -> "Keep prod, main, dev images forever"
|
||||||
selection = {
|
selection = {
|
||||||
tagStatus = "any"
|
tagStatus = "any"
|
||||||
countType = "imageCountMoreThan"
|
countType = "imageCountMoreThan"
|
||||||
countNumber = 20
|
countNumber = 10
|
||||||
}
|
}
|
||||||
action = {
|
action = {
|
||||||
type = "expire"
|
type = "expire"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue