Add circle CI config.
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
version: 2.1
|
||||
orbs:
|
||||
#snyk: snyk/snyk@0.0.8
|
||||
#cypress: cypress-io/cypress@1.23.0
|
||||
aws-s3: circleci/aws-s3@4.0.0
|
||||
aws-cli: circleci/aws-cli@4.0
|
||||
eb: circleci/aws-elastic-beanstalk@2.0.1
|
||||
jira: circleci/jira@2.1.0
|
||||
jobs:
|
||||
partner-win-build:
|
||||
docker:
|
||||
@@ -19,29 +12,21 @@ jobs:
|
||||
- checkout:
|
||||
path: ~/repo
|
||||
- run:
|
||||
name: Execute migration
|
||||
name: Install NPM Packages
|
||||
command: |
|
||||
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash
|
||||
hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >>
|
||||
sleep 15
|
||||
hasura metadata apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >>
|
||||
sleep 30
|
||||
hasura metadata reload --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >>
|
||||
- jira/notify:
|
||||
environment: Test (ImEX) - Hasura
|
||||
environment_type: testing
|
||||
pipeline_id: << pipeline.id >>
|
||||
job_type: deployment
|
||||
pipeline_number: << pipeline.number >>
|
||||
npm install
|
||||
- run:
|
||||
name: Build Electron App for Windows
|
||||
command: |
|
||||
npm run build && electron-builder --win
|
||||
- store_artifacts:
|
||||
path: ~/repo/dist
|
||||
|
||||
workflows:
|
||||
deploy_and_build:
|
||||
jobs:
|
||||
- partner-win-build:
|
||||
filters:
|
||||
branches:
|
||||
only: main
|
||||
- partner-mac-build:
|
||||
filters:
|
||||
branches:
|
||||
only: main
|
||||
- partner-win-build
|
||||
# - partner-mac-build:
|
||||
# filters:
|
||||
# branches:
|
||||
# only: main
|
||||
|
||||
Reference in New Issue
Block a user