Skip to content

Commit

Permalink
make workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Nov 30, 2023
1 parent a83bacd commit 5a852ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .circleci/deployment/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
cf-org: <<parameters.cf-org>>
cf-space: <<parameters.cf-space>>
cf-username: <<parameters.cf-username>>
- run-migrations:
backend-appname: <<parameters.backend-appname>>
- deploy-backend:
backend-appname: <<parameters.backend-appname>>
frontend-appname: <<parameters.frontend-appname>>
Expand Down
4 changes: 2 additions & 2 deletions .circleci/deployment/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
run-migrations:
executor: large-machine-executor
parameters:
backend-appname:
target_env:
type: string
working_directory: ~/tdp-deploy
steps:
# - setup_remote_docker
- run:
name: Apply database migrations
command: |
bash ./scripts/apply-remote-migrations.sh <<backend-appname>>
bash ./scripts/apply-remote-migrations.sh tdp-backend-<< parameters.target_env >>
deploy-dev:
executor: docker-executor
Expand Down
2 changes: 2 additions & 0 deletions .circleci/deployment/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
- develop
- main
- master
- run-migrations:
target_env: << pipeline.parameters.target_env >>
- deploy-dev:
target_env: << pipeline.parameters.target_env >>
requires:
Expand Down

0 comments on commit 5a852ce

Please sign in to comment.