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