Skip to content

Commit

Permalink
Revert "👷 Fix hasura migration step"
Browse files Browse the repository at this point in the history
This reverts commit 4868b41.
  • Loading branch information
Ked57 committed Sep 23, 2021
1 parent 4868b41 commit 04c54b2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,16 @@ jobs:
type: string
hasura-endpoint:
type: string
next_api_bearer_token:
type: string
steps:
- checkout
- run:
name: Apply migrations
working_directory: hasura
command: NEXT_API_BEARER_TOKEN=<< parameters.next_api_bearer_token >> hasura-cli migrate apply --admin-secret << parameters.hasura-admin-secret >> --endpoint << parameters.hasura-endpoint >>
command: hasura-cli migrate apply --admin-secret << parameters.hasura-admin-secret >> --endpoint << parameters.hasura-endpoint >>
- run:
name: Apply metadata
working_directory: hasura
command: NEXT_API_BEARER_TOKEN=<< parameters.next_api_bearer_token >> hasura-cli metadata apply --admin-secret << parameters.hasura-admin-secret >> --endpoint << parameters.hasura-endpoint >>
command: hasura-cli metadata apply --admin-secret << parameters.hasura-admin-secret >> --endpoint << parameters.hasura-endpoint >>
deploy:
executor: node
parameters:
Expand Down Expand Up @@ -244,7 +242,6 @@ workflows:
name: run-migrations-staging
hasura-admin-secret: $HASURA_ADMIN_SECRET_STAGING
hasura-endpoint: $HASURA_ENDPOINT_STAGING
next_api_bearer_token: $NEXT_API_BEARER_TOKEN
requires:
- deploy-hasura-staging
filters: *deploy-staging-filters
Expand Down Expand Up @@ -293,7 +290,6 @@ workflows:
name: run-migrations
hasura-admin-secret: $HASURA_ADMIN_SECRET_PROD
hasura-endpoint: $HASURA_ENDPOINT_PROD
next_api_bearer_token: $NEXT_API_BEARER_TOKEN
requires:
- deploy-hasura
filters: *deploy-filters
Expand Down

0 comments on commit 04c54b2

Please sign in to comment.