Skip to content

Commit

Permalink
feat: setup a GAR repository for CFT images (#2484)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Peabody <[email protected]>
  • Loading branch information
g-awmalik and apeabody authored Aug 2, 2024
1 parent 712b7f2 commit e88be7c
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 46 deletions.
89 changes: 45 additions & 44 deletions infra/terraform/test-org/ci-project/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions infra/terraform/test-org/ci-project/gar.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module "artifact_registry" {
source = "GoogleCloudPlatform/artifact-registry/google"
version = "~> 0.2"

location = "us"
project_id = local.project_id
format = "DOCKER"
repository_id = "gcr.io"

members = {
readers = [
"allUsers",
]

writers = [
"serviceAccount:${module.service_accounts.service_account.email}",
]
}
}
4 changes: 2 additions & 2 deletions infra/terraform/test-org/ci-project/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ terraform {
version = "~> 6.0"
}
google = {
version = ">= 3.39, < 6"
version = ">= 5.26, < 6"
}
google-beta = {
version = ">= 3.39, < 6"
version = ">= 5.26, < 6"
}
}
}

0 comments on commit e88be7c

Please sign in to comment.