diff --git a/.circleci/deployment/commands.yml b/.circleci/deployment/commands.yml index a5be1de44..aee766025 100644 --- a/.circleci/deployment/commands.yml +++ b/.circleci/deployment/commands.yml @@ -33,8 +33,6 @@ cf-org: <> cf-space: <> cf-username: <> - - run-migrations: - backend-appname: <> - deploy-backend: backend-appname: <> frontend-appname: <> diff --git a/.circleci/deployment/jobs.yml b/.circleci/deployment/jobs.yml index 3428a05c3..b7d98ef06 100644 --- a/.circleci/deployment/jobs.yml +++ b/.circleci/deployment/jobs.yml @@ -2,7 +2,7 @@ run-migrations: executor: large-machine-executor parameters: - backend-appname: + target_env: type: string working_directory: ~/tdp-deploy steps: @@ -10,7 +10,7 @@ - run: name: Apply database migrations command: | - bash ./scripts/apply-remote-migrations.sh <> + bash ./scripts/apply-remote-migrations.sh tdp-backend-<< parameters.target_env >> deploy-dev: executor: docker-executor diff --git a/.circleci/deployment/workflows.yml b/.circleci/deployment/workflows.yml index 5689b83bc..2fdc5bd74 100644 --- a/.circleci/deployment/workflows.yml +++ b/.circleci/deployment/workflows.yml @@ -14,6 +14,8 @@ - develop - main - master + - run-migrations: + target_env: << pipeline.parameters.target_env >> - deploy-dev: target_env: << pipeline.parameters.target_env >> requires: