CI file updates.
This commit is contained in:
@@ -23,7 +23,10 @@ jobs:
|
|||||||
hasura-migrate:
|
hasura-migrate:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.15.0
|
- image: cimg/node:16.15.0
|
||||||
|
parameters:
|
||||||
|
HASURA_PROD_SECRET:
|
||||||
|
type: string
|
||||||
|
default: ${HASURA_PROD_SECRET}
|
||||||
working_directory: ~/repo/hasura
|
working_directory: ~/repo/hasura
|
||||||
steps:
|
steps:
|
||||||
- checkout:
|
- checkout:
|
||||||
@@ -32,9 +35,9 @@ jobs:
|
|||||||
name: Execute migration
|
name: Execute migration
|
||||||
command: |
|
command: |
|
||||||
npm install hasura-cli -g
|
npm install hasura-cli -g
|
||||||
hasura migrate apply --endpoint https://db.imex.online/ --admin-secret ${HASURA_PROD_SECRET}
|
hasura migrate apply --endpoint https://db.imex.online/ --admin-secret << HASURA_PROD_SECRET >>
|
||||||
hasura metadata apply --endpoint https://db.imex.online/ --admin-secret ${HASURA_PROD_SECRET}
|
hasura metadata apply --endpoint https://db.imex.online/ --admin-secret << HASURA_PROD_SECRET >>
|
||||||
hasura metadata reload --endpoint https://db.imex.online/ --admin-secret ${HASURA_PROD_SECRET}
|
hasura metadata reload --endpoint https://db.imex.online/ --admin-secret << HASURA_PROD_SECRET >>
|
||||||
|
|
||||||
app-build:
|
app-build:
|
||||||
docker:
|
docker:
|
||||||
@@ -69,7 +72,10 @@ jobs:
|
|||||||
test-hasura-migrate:
|
test-hasura-migrate:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.15.0
|
- image: cimg/node:16.15.0
|
||||||
|
parameters:
|
||||||
|
HASURA_TEST_SECRET:
|
||||||
|
type: string
|
||||||
|
default: ${HASURA_TEST_SECRET}
|
||||||
working_directory: ~/repo/hasura
|
working_directory: ~/repo/hasura
|
||||||
steps:
|
steps:
|
||||||
- checkout:
|
- checkout:
|
||||||
@@ -78,9 +84,9 @@ jobs:
|
|||||||
name: Execute migration
|
name: Execute migration
|
||||||
command: |
|
command: |
|
||||||
npm install hasura-cli -g
|
npm install hasura-cli -g
|
||||||
hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret ${HASURA_TEST_SECRET}
|
hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret << HASURA_TEST_SECRET >>
|
||||||
hasura metadata apply --endpoint https://db.test.bodyshop.app/ --admin-secret ${HASURA_TEST_SECRET}
|
hasura metadata apply --endpoint https://db.test.bodyshop.app/ --admin-secret << HASURA_TEST_SECRET >>
|
||||||
hasura metadata reload --endpoint https://db.test.bodyshop.app/ --admin-secret ${HASURA_TEST_SECRET}
|
hasura metadata reload --endpoint https://db.test.bodyshop.app/ --admin-secret << HASURA_TEST_SECRET >>
|
||||||
|
|
||||||
test-app-build:
|
test-app-build:
|
||||||
docker:
|
docker:
|
||||||
|
|||||||
Reference in New Issue
Block a user