From 77146597cf0b7ea2a29f2fe77c2c38420996681f Mon Sep 17 00:00:00 2001 From: "V. Alex Brennen" Date: Wed, 11 Feb 2026 08:55:40 -0500 Subject: [PATCH] dss updates for new build workflow Why these changes are being introduced: This commit updates the TFC Makefile outputs for the DSC app to support the multiple architecture build workflow. How this addresses that need: * Update the TfCloud outputs for the dss Makefile and caller workflows Side effects of this change: None. Relevant ticket(s): https://mitlibraries.atlassian.net/browse/IN-1646 Changes to be committed: modified: dss_ecr.tf --- dss_ecr.tf | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dss_ecr.tf b/dss_ecr.tf index 84258be..0592cdd 100644 --- a/dss_ecr.tf +++ b/dss_ecr.tf @@ -1,9 +1,10 @@ - -# dss containers +# DSpace Submission Service (dss) containers # This is a standard ECR for an ECS with a Fargate launch type + locals { ecr_dss = "dspace-submission-service-${var.environment}" } + module "ecr_dss" { source = "./modules/ecr" repo_name = "dspace-submission-service" @@ -21,7 +22,7 @@ module "ecr_dss" { ## For dss application repo and ECR repository # Outputs in dev output "dss_fargate_dev_build_workflow" { - value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/dev-build.tpl", { + value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/dev-build-cpu-arch.tpl", { region = var.aws_region role = module.ecr_dss.gha_role ecr = module.ecr_dss.repository_name @@ -31,7 +32,7 @@ output "dss_fargate_dev_build_workflow" { description = "Full contents of the dev-build.yml for the dss repo" } output "dss_fargate_makefile" { - value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/makefile.tpl", { + value = var.environment == "prod" || var.environment == "stage" ? null : templatefile("${path.module}/files/makefile-cpu-arch.tpl", { ecr_name = module.ecr_dss.repository_name ecr_url = module.ecr_dss.repository_url function = "" @@ -42,7 +43,7 @@ output "dss_fargate_makefile" { # Outputs in stage output "dss_fargate_stage_build_workflow" { - value = var.environment == "prod" || var.environment == "dev" ? null : templatefile("${path.module}/files/stage-build.tpl", { + value = var.environment == "prod" || var.environment == "dev" ? null : templatefile("${path.module}/files/stage-build-cpu-arch.tpl", { region = var.aws_region role = module.ecr_dss.gha_role ecr = module.ecr_dss.repository_name @@ -54,7 +55,7 @@ output "dss_fargate_stage_build_workflow" { # Outputs after promotion to prod output "dss_fargate_prod_promote_workflow" { - value = var.environment == "stage" || var.environment == "dev" ? null : templatefile("${path.module}/files/prod-promote.tpl", { + value = var.environment == "stage" || var.environment == "dev" ? null : templatefile("${path.module}/files/prod-promote-cpu-arch.tpl", { region = var.aws_region role_stage = "${module.ecr_dss.repo_name}-gha-stage" role_prod = "${module.ecr_dss.repo_name}-gha-prod"