From a1df4c4a647051e8397852dc358c37777a268fb0 Mon Sep 17 00:00:00 2001 From: AlejandroEsquivel Date: Tue, 24 Oct 2023 13:15:24 -0700 Subject: [PATCH] Adding prefix to artifact registry --- CHANGELOG.md | 4 ++++ covalent_gcpbatch_plugin/assets/infra/main.tf | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f5823d..e6b7f45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [UNRELEASED] +### Changed + +- Adding prefix to artifact registry + ## [0.11.0] - 2023-09-21 ### Authors diff --git a/covalent_gcpbatch_plugin/assets/infra/main.tf b/covalent_gcpbatch_plugin/assets/infra/main.tf index 05d6d97..68f8d31 100644 --- a/covalent_gcpbatch_plugin/assets/infra/main.tf +++ b/covalent_gcpbatch_plugin/assets/infra/main.tf @@ -40,7 +40,7 @@ provider docker { data google_client_config current {} locals { - executor_image_tag = join("/", [join("-", [data.google_client_config.current.region, "docker.pkg.dev"]), var.project_id, "covalent", "covalent-gcpbatch-executor"]) + executor_image_tag = join("/", [join("-", [data.google_client_config.current.region, "docker.pkg.dev"]), var.project_id, google_artifact_registry_repository.covalent.name, "covalent-gcpbatch-executor"]) } resource random_string sasuffix { @@ -52,7 +52,7 @@ resource random_string sasuffix { # Create the docker artifact registry resource google_artifact_registry_repository covalent { location = data.google_client_config.current.region - repository_id = "covalent" + repository_id = join("", [var.prefix, "covalent", "registry"]) description = "Covalent Batch executor base images" format = "DOCKER" }