mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +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
|
||||
terraform plan -var-file=dev.tfvars
|
||||
|
||||
# # only run once
|
||||
# - name: Terraform Apply (shared)
|
||||
# run: |
|
||||
# cd infrastructure/terraform/shared
|
||||
# terraform apply -auto-approve -var-file=dev.tfvars
|
||||
# only run once
|
||||
- name: Terraform Apply (shared)
|
||||
run: |
|
||||
cd infrastructure/terraform/shared
|
||||
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
|
||||
description = "Expire old non-protected images"
|
||||
description = "Retain only the last 10 images" -> "Keep prod, main, dev images forever"
|
||||
selection = {
|
||||
tagStatus = "any"
|
||||
countType = "imageCountMoreThan"
|
||||
countNumber = 20
|
||||
countNumber = 10
|
||||
}
|
||||
action = {
|
||||
type = "expire"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue