From 5c208d9d08453fa66dbf47c1ceb57690a1083c43 Mon Sep 17 00:00:00 2001 From: balakrishna-deriv <56330681+balakrishna-deriv@users.noreply.github.com> Date: Fri, 29 Dec 2023 14:43:37 +0800 Subject: [PATCH] Delete .circleci/config.yml --- .circleci/config.yml | 170 ------------------------------------------- 1 file changed, 170 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 68d666c6b..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,170 +0,0 @@ -version: 2.1 -orbs: - k8s: circleci/kubernetes@0.7.0 - slack: circleci/slack@3.4.2 -commands: - npm_install: - description: "Install node modules" - steps: - - restore_cache: - name: Restoring node_modules - keys: - - source-v3-modules-{{ checksum "package-lock.json" }} - - source-v3-modules - - run: - name: npm install - command: npm install - - save_cache: - name: Save node_module - key: source-v3-modules-{{ checksum "package-lock.json" }} - paths: - - "node_modules" - test: - description: Test App - steps: - - run: - name: Testing App - command: npm run test - build: - description: Build App - steps: - - run: - name: Building App - no_output_timeout: 30m - command: | - npm run build-travis - mkdir public - mv dist/ public/ - cp index.html public/ - versioning: - description: "Add version to build" - parameters: - target_branch: - type: string - default: "staging" - steps: - - run: - name: Tag build - command: echo "<< parameters.target_branch >> $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > public/version - notify_slack: - description: "Notify slack" - steps: - - slack/status: - include_project_field: false - failure_message: "Release failed for Smartchart with version *$(cat public/version)*" - success_message: "Release succeeded for Smartchart with version *$(cat public/version)*" - webhook: ${SLACK_WEBHOOK} - publish_to_pages_staging: - description: "Publish to cloudflare pages" - steps: - - run: - name: "Publish to cloudflare pages (staging)" - command: | - npm i wrangler@2.0.19 - cd public - npx wrangler pages publish . --project-name=smart-charts-pages --branch=staging - echo "New staging website - http://staging.cf-pages-smart-charts.binary.com" - publish_to_pages_production: - description: "Publish to cloudflare pages" - steps: - - run: - name: "Publish to cloudflare pages (production)" - command: | - npm i wrangler@2.0.19 - cd public - npx wrangler pages publish . --project-name=smart-charts-pages --branch=main - echo "New website - http://cf-pages-smart-charts.binary.com" - -jobs: - test: - docker: - - image: cimg/node:18.16.0 - steps: - - checkout - - npm_install - - test - release_staging: - docker: - - image: cimg/node:18.16.0 - steps: - - checkout - - npm_install - - test - - build - - versioning - - persist_to_workspace: - root: public - paths: - - . - - notify_slack - release_production: - docker: - - image: cimg/node:18.16.0 - steps: - - checkout - - npm_install - - test - - build - - versioning: - target_branch: "production" - - persist_to_workspace: - root: public - paths: - - . - - notify_slack - - publish_cloudflare_staging: - docker: - - image: cimg/node:18.16.0 - steps: - - attach_workspace: - at: public - - publish_to_pages_staging - - publish_cloudflare_production: - docker: - - image: cimg/node:18.16.0 - steps: - - attach_workspace: - at: public - - publish_to_pages_production - -workflows: - test: - jobs: - - test: - filters: - branches: - ignore: /^master$/ - release_staging: - jobs: - - release_staging: - filters: - branches: - only: /^master$/ - context: binary-frontend-artifact-upload - - publish_cloudflare_staging: - requires: - - release_staging - filters: - branches: - only: /^master$/ - context: binary-frontend-artifact-upload - release_production: - jobs: - - release_production: - filters: - branches: - ignore: /.*/ - tags: - only: /^production.*/ - context: binary-frontend-artifact-upload - - publish_cloudflare_production: - requires: - - release_production - filters: - branches: - ignore: /.*/ - tags: - only: /^production.*/ - context: binary-frontend-artifact-upload