Skip to content

Commit

Permalink
ensure the build bucket is created in the specified region (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingman authored Nov 9, 2024
1 parent adde430 commit bb82162
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions infrastructure/terraform/modules/activation/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,15 @@ module "activation_pipeline_container" {

platform = "linux"

#create_cmd_body = "builds submit --project=${module.project_services.project_id} --tag ${local.docker_repo_prefix}/${google_artifact_registry_repository.activation_repository.name}/${local.activation_container_name}:latest ${local.pipeline_source_dir}"
create_cmd_body = "builds submit --project=${module.project_services.project_id} --tag ${local.docker_repo_prefix}/${google_artifact_registry_repository.activation_repository.name}/${local.activation_container_name}:latest --gcs-log-dir=gs://${module.build_logs_bucket.name} ${local.pipeline_source_dir}"
create_cmd_body = <<-EOT
builds submit \
--project=${module.project_services.project_id} \
--region ${var.location} \
--default-buckets-behavior=regional-user-owned-bucket \
--tag ${local.docker_repo_prefix}/${google_artifact_registry_repository.activation_repository.name}/${local.activation_container_name}:latest \
--gcs-log-dir=gs://${module.build_logs_bucket.name} \
${local.pipeline_source_dir}
EOT
destroy_cmd_body = "artifacts docker images delete --project=${module.project_services.project_id} ${local.docker_repo_prefix}/${google_artifact_registry_repository.activation_repository.name}/${local.activation_container_name} --delete-tags"

create_cmd_triggers = {
Expand Down

0 comments on commit bb82162

Please sign in to comment.