From a83bacd003682389345e2272019da1cbd413a325 Mon Sep 17 00:00:00 2001 From: Jan Timpe Date: Thu, 30 Nov 2023 11:57:20 -0500 Subject: [PATCH] move run-migrations command back to job --- .circleci/deployment/commands.yml | 12 +++++++----- .circleci/deployment/jobs.yml | 13 +++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.circleci/deployment/commands.yml b/.circleci/deployment/commands.yml index f3d667d0c..a5be1de44 100644 --- a/.circleci/deployment/commands.yml +++ b/.circleci/deployment/commands.yml @@ -33,6 +33,8 @@ cf-org: <> cf-space: <> cf-username: <> + - run-migrations: + backend-appname: <> - deploy-backend: backend-appname: <> frontend-appname: <> @@ -83,13 +85,13 @@ default: tanf-dev type: string steps: - - setup_remote_docker + # - setup_remote_docker - get-app-deploy-strategy: appname: <> - - run: - name: Apply database migrations - command: | - bash ./scripts/apply-remote-migrations.sh <> + # - run: + # name: Apply database migrations + # command: | + # bash ./scripts/apply-remote-migrations.sh <> - run: name: Deploy backend application command: | diff --git a/.circleci/deployment/jobs.yml b/.circleci/deployment/jobs.yml index 9aa40dfa7..3428a05c3 100644 --- a/.circleci/deployment/jobs.yml +++ b/.circleci/deployment/jobs.yml @@ -1,4 +1,17 @@ # jobs: + run-migrations: + executor: large-machine-executor + parameters: + backend-appname: + type: string + working_directory: ~/tdp-deploy + steps: + # - setup_remote_docker + - run: + name: Apply database migrations + command: | + bash ./scripts/apply-remote-migrations.sh <> + deploy-dev: executor: docker-executor parameters: