From e4f4cdc25e2cd50af9c6ac26254e0c6b51c0e0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Bro=C5=84ski?= Date: Mon, 6 Mar 2023 13:00:25 +0100 Subject: [PATCH] Remove CircleCI leftover --- .circleci/config.yml | 156 ------------------------------------------- README.md | 1 - 2 files changed, 157 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index ee8228aa07..0000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,156 +0,0 @@ -# prettier-ignore ---- -version: 2.1 - -references: - not_master_branch: ¬_master_branch - filters: - branches: - ignore: master - versions_only: &versions_only - filters: - tags: - only: /^v.*/ - branches: - ignore: /.*/ - npm_cache_key: &npm_cache_key - v1-dependency-npm-{{ checksum "yarn.lock" }} - npm_backup_cache_key: &npm_backup_cache_key - v1-dependency-npm - - restore_node_modules: &restore_node_modules - restore_cache: - name: Restore node_modules from cache - keys: - - *npm_cache_key - - *npm_backup_cache_key - - save_node_modules: &save_node_modules - save_cache: - name: Save node_modules to cache - key: *npm_cache_key - paths: - - node_modules - - apps/mcms-html-scss/node_modules - -executors: - node: - docker: - - image: node:16.14 - aws: - docker: - - image: mesosphere/aws-cli - docker: - docker: - - image: docker:19 - -workflows: - premerge_check_workflow: - jobs: - - build_tests: - <<: *not_master_branch - context: e2e-tests - - build_and_deploy: - jobs: - - app_build_prod: - <<: *versions_only - - app_deploy_prod: - <<: *versions_only - context: aws-scalio-circleci - requires: - - app_build_prod - -jobs: - build_tests: - executor: node - steps: - - build_tests - - app_build_prod: - executor: node - steps: - - app_build: - app_name: docusaurus - app_src: ./ - build_folder: ./build - - app_deploy_prod: - executor: aws - steps: - - app_deploy: - bucket: mcms-docusaurus.scaliolabs.com - distr_id: E38IZW01TEK74G - dist_path: dist/docusaurus - -commands: - build_tests: - steps: - - checkout - - *restore_node_modules - - run: - name: Install packages - command: | - NODE_OPTIONS="--max-old-space-size=4096" - yarn install - - *save_node_modules - - run: - name: Run code analysis - command: | - NODE_OPTIONS="--max-old-space-size=4096" - yarn format - - run: - name: Build App - command: | - NODE_OPTIONS="--max-old-space-size=4096" - yarn build - - app_build: - parameters: - app_name: - type: string - app_src: - type: string - build_folder: - type: string - steps: - - checkout - - *restore_node_modules - - run: - name: Install packages - command: | - NODE_OPTIONS="--max-old-space-size=4096" - yarn --cwd << parameters.app_src >> - - *save_node_modules - - run: - name: Build App - command: | - NODE_OPTIONS="--max-old-space-size=4096" - yarn --cwd << parameters.app_src >> build --out-dir build/docs - - run: mkdir dist - - run: mv << parameters.build_folder >> dist/<< parameters.app_name >> - - run: cp dist/<< parameters.app_name >>/docs/index.html dist/<< parameters.app_name >>/index.html - - persist_to_workspace: - root: . - paths: - - dist/<< parameters.app_name >> - - app_deploy: - parameters: - bucket: - type: string - distr_id: - type: string - dist_path: - type: string - region: - type: string - default: us-west-1 - steps: - - run: apk --update add -ca-certificates - - attach_workspace: - at: . - - run: echo will deploy to region << parameters.region >>, s3 bucket << parameters.bucket >>, CF distribution << parameters.distr_id >> - - run: aws configure set region << parameters.region >> - - run: aws s3 sync << parameters.dist_path >> s3://<< parameters.bucket >> --delete - - run: aws cloudfront create-invalidation --distribution-id << parameters.distr_id >> --paths "/*" diff --git a/README.md b/README.md index ccf1145f5b..f807286638 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,6 @@ The table below shows you the main structure of the documentation framework. | Folder/File | Description | | -------------------- | ----------------------------------------- | -| .circleci | CI/CD pipeline module | | .docusaurus | Docusaurus default configuration module | | .github | GitHub module | | .husky | Husky script module |