Skip to content

Commit

Permalink
Remote (#11907)
Browse files Browse the repository at this point in the history
* Update image-builder.tf

* Update image-builder.tf

* upd8 account

* Correct account

* Correct account

* Correct account

* Correct account

* Correct account

* Correct account
  • Loading branch information
akiioto authored Sep 13, 2024
1 parent 452d766 commit 6fcdbcd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configs/terraform/environments/prod/image-builder.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ resource "google_artifact_registry_repository" "dockerhub_mirror" {
repository_id = "dockerhub-mirror"
description = "Remote repository mirroring Docker Hub"
format = "DOCKER"
location = var.gcp_region
location = "europe"
mode = "REMOTE_REPOSITORY"

remote_repository_config {
Expand All @@ -104,8 +104,10 @@ resource "google_artifact_registry_repository" "dockerhub_mirror" {
}

resource "google_artifact_registry_repository_iam_member" "dockerhub_mirror_access" {
provider = google.kyma_project
project = var.kyma_project_gcp_project_id
location = google_artifact_registry_repository.dockerhub_mirror.location
repository = google_artifact_registry_repository.dockerhub_mirror.name
role = "roles/artifactregistry.reader"
member = "serviceAccount:azure-pipeline-image-builder@kyma-project.iam.gserviceaccount.com"
project = "kyma-project"
}

0 comments on commit 6fcdbcd

Please sign in to comment.