Skip to content

Commit

Permalink
Fail migrations job if commands exit with error code
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad committed Aug 13, 2024
1 parent cc85777 commit debda14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/aks/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit debda14

Please sign in to comment.