Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding prefix to artifact registry #28

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions covalent_gcpbatch_plugin/assets/infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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"
}
Expand Down
Loading