From fe14ed595b685b9759ca0f055edc6d0b8cf311a6 Mon Sep 17 00:00:00 2001 From: Daniyar Itegulov Date: Mon, 20 Nov 2023 23:49:53 +1100 Subject: [PATCH 1/2] fix: remove artifact registry (#376) --- infra/partner/main.tf | 8 -------- 1 file changed, 8 deletions(-) diff --git a/infra/partner/main.tf b/infra/partner/main.tf index a0af6da36..59f0b1c64 100644 --- a/infra/partner/main.tf +++ b/infra/partner/main.tf @@ -62,14 +62,6 @@ resource "google_secret_manager_secret_iam_member" "secret_share_secret_access" member = "serviceAccount:${google_service_account.service_account.email}" } -/* - * Create Artifact Registry repo, tag existing Docker image and push to the repo - */ -resource "google_artifact_registry_repository" "mpc_recovery" { - repository_id = "mpc-recovery-partner-${var.env}" - format = "DOCKER" -} - /* * Create a partner signer node */ From 745a1e87e5089dbac1b307ac64ba5341dc68a71e Mon Sep 17 00:00:00 2001 From: Serhii Volovyk Date: Mon, 20 Nov 2023 15:26:50 +0200 Subject: [PATCH 2/2] Terraform prod "env" and docker immage changed (#377) Co-authored-by: Daniyar Itegulov Co-authored-by: kmaus-near Co-authored-by: kmaus-near <109096383+kmaus-near@users.noreply.github.com> Co-authored-by: Phuong Nguyen Co-authored-by: DavidM-D --- infra/mpc-recovery-dev/terraform-dev.tfvars | 2 +- infra/mpc-recovery-prod/main.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/mpc-recovery-dev/terraform-dev.tfvars b/infra/mpc-recovery-dev/terraform-dev.tfvars index a85c406aa..e4879bcc0 100644 --- a/infra/mpc-recovery-dev/terraform-dev.tfvars +++ b/infra/mpc-recovery-dev/terraform-dev.tfvars @@ -1,6 +1,6 @@ env = "dev" project = "pagoda-discovery-platform-dev" -docker_image = "us-east1-docker.pkg.dev/pagoda-discovery-platform-dev/mpc-recovery/mpc-recovery-dev:3b95ef518e320cf35438bbc2e39be71040769d99" +docker_image = "us-east1-docker.pkg.dev/pagoda-discovery-platform-dev/mpc-recovery/mpc-recovery-dev:latest" account_creator_id = "mpc-recovery-dev-creator.testnet" account_creator_sk_secret_id = "mpc-recovery-account-creator-sk-dev" diff --git a/infra/mpc-recovery-prod/main.tf b/infra/mpc-recovery-prod/main.tf index 0580b4111..fcbc2e929 100644 --- a/infra/mpc-recovery-prod/main.tf +++ b/infra/mpc-recovery-prod/main.tf @@ -118,7 +118,7 @@ module "signer-mainnet" { count = length(var.signer_configs) source = "../modules/signer" - env = "prod" + env = "mainnet" service_name = "mpc-recovery-signer-${count.index}-mainnet" project = var.project region = var.region @@ -145,7 +145,7 @@ module "signer-mainnet" { module "leader-mainnet" { source = "../modules/leader" - env = "prod" + env = "mainnet" service_name = "mpc-recovery-leader-mainnet" project = var.project region = var.region