Skip to content

Commit

Permalink
move run-migrations command back to job
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Nov 30, 2023
1 parent 27dbe56 commit a83bacd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .circleci/deployment/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
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 Expand Up @@ -83,13 +85,13 @@
default: tanf-dev
type: string
steps:
- setup_remote_docker
# - setup_remote_docker
- get-app-deploy-strategy:
appname: <<parameters.backend-appname>>
- run:
name: Apply database migrations
command: |
bash ./scripts/apply-remote-migrations.sh <<parameters.backend-appname>>
# - run:
# name: Apply database migrations
# command: |
# bash ./scripts/apply-remote-migrations.sh <<parameters.backend-appname>>
- run:
name: Deploy backend application
command: |
Expand Down
13 changes: 13 additions & 0 deletions .circleci/deployment/jobs.yml
Original file line number Diff line number Diff line change
@@ -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 <<backend-appname>>
deploy-dev:
executor: docker-executor
parameters:
Expand Down

0 comments on commit a83bacd

Please sign in to comment.