This commit is contained in:
Patrick Fic
2022-11-09 16:34:30 -08:00
parent d01a1aa0a0
commit 77e865c5c4

View File

@@ -84,6 +84,7 @@ jobs:
name: Execute migration
command: |
npm install hasura-cli -g
echo ${HASURA_TEST_SECRET}
hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >>
hasura metadata apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >>
hasura metadata reload --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >>
@@ -160,7 +161,7 @@ workflows:
branches:
only: master
- hasura-migrate:
secret: $HASURA_PROD_SECRET
secret: ${HASURA_PROD_SECRET}
filters:
branches:
only: master
@@ -169,7 +170,7 @@ workflows:
branches:
only: test
- test-hasura-migrate:
secret: $HASURA_TEST_SECRET1
secret: ${HASURA_TEST_SECRET}
filters:
branches:
only: test