From bb68a1ce71f140b4cc7fb2c93a5d458317dd21d2 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Tue, 13 Aug 2024 14:48:26 +0100 Subject: [PATCH] Fail migrations job if commands exit with error code (#1461) --- terraform/aks/app.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/aks/app.tf b/terraform/aks/app.tf index 4c89b75a4..902b29698 100644 --- a/terraform/aks/app.tf +++ b/terraform/aks/app.tf @@ -24,7 +24,7 @@ resource "kubernetes_job" "migrations" { container { name = "cli" image = var.docker_image - command = ["/bin/ash", "-c"] + command = ["/bin/ash", "-e", "-c"] args = ["./db.sh -c 'alter user $(PG_USER) with replication;'", "trscli migrate-db --connection-string $(ConnectionStrings__DefaultConnection)"] env {