-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathartifact-registry.tf
More file actions
33 lines (33 loc) · 1.13 KB
/
Copy pathartifact-registry.tf
File metadata and controls
33 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Artifact Registry for storing the GitHub Actions Runners manager container image
# https://github.com/GoogleCloudPlatform/cloud-foundation-fabric/blob/v49.1.0/modules/artifact-registry/README.md
module "artifact-registry-container" {
source = "git::https://github.com/GoogleCloudPlatform/cloud-foundation-fabric//modules/artifact-registry?ref=v50.0.0"
project_id = module.project.project_id
location = var.region
name = "container-github-runners-manager"
description = "Registry for GitHub Actions Runners manager (Terraform-managed)"
format = { docker = { standard = {} } }
cleanup_policy_dry_run = false
cleanup_policies = {
keep-3-versions = {
action = "KEEP"
most_recent_versions = {
keep_count = 3
}
}
delete = {
action = "DELETE"
condition = {
tag_state = "UNTAGGED"
}
}
}
iam = {
"roles/artifactregistry.writer" = [
module.service-account-cloud-build-github-runners.iam_email
]
}
depends_on = [
time_sleep.wait_for_service_account_cloud_build
]
}