Merged in circleci-editor/847/test (pull request #620)
Add .circleci/config.yml
This commit is contained in:
@@ -24,9 +24,9 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.15.0
|
- image: cimg/node:16.15.0
|
||||||
parameters:
|
parameters:
|
||||||
HASURA_PROD_SECRET:
|
secret:
|
||||||
type: string
|
type: string
|
||||||
default: ${HASURA_PROD_SECRET}
|
default: $HASURA_PROD_SECRET
|
||||||
working_directory: ~/repo/hasura
|
working_directory: ~/repo/hasura
|
||||||
steps:
|
steps:
|
||||||
- checkout:
|
- checkout:
|
||||||
@@ -35,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 << parameters.secret >>
|
||||||
hasura metadata apply --endpoint https://db.imex.online/ --admin-secret << HASURA_PROD_SECRET >>
|
hasura metadata apply --endpoint https://db.imex.online/ --admin-secret << parameters.secret >>
|
||||||
hasura metadata reload --endpoint https://db.imex.online/ --admin-secret << HASURA_PROD_SECRET >>
|
hasura metadata reload --endpoint https://db.imex.online/ --admin-secret << parameters.secret >>
|
||||||
|
|
||||||
app-build:
|
app-build:
|
||||||
docker:
|
docker:
|
||||||
@@ -73,9 +73,9 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.15.0
|
- image: cimg/node:16.15.0
|
||||||
parameters:
|
parameters:
|
||||||
HASURA_TEST_SECRET:
|
secret:
|
||||||
type: string
|
type: string
|
||||||
default: ${HASURA_TEST_SECRET}
|
default: $HASURA_TEST_SECRET
|
||||||
working_directory: ~/repo/hasura
|
working_directory: ~/repo/hasura
|
||||||
steps:
|
steps:
|
||||||
- checkout:
|
- checkout:
|
||||||
@@ -84,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 << parameters.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 << parameters.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 << parameters.secret >>
|
||||||
|
|
||||||
test-app-build:
|
test-app-build:
|
||||||
docker:
|
docker:
|
||||||
@@ -160,6 +160,7 @@ workflows:
|
|||||||
branches:
|
branches:
|
||||||
only: master
|
only: master
|
||||||
- hasura-migrate:
|
- hasura-migrate:
|
||||||
|
secret: $HASURA_PROD_SECRET
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: master
|
only: master
|
||||||
@@ -168,6 +169,7 @@ workflows:
|
|||||||
branches:
|
branches:
|
||||||
only: test
|
only: test
|
||||||
- test-hasura-migrate:
|
- test-hasura-migrate:
|
||||||
|
secret: $HASURA_TEST_SECRET
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: test
|
only: test
|
||||||
|
|||||||
Reference in New Issue
Block a user