From 9ac50c171766439ee2518866880eeba231b4e799 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Wed, 19 Nov 2025 15:55:31 -0600 Subject: [PATCH 1/3] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 48a0973..03d3c03 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: - checkout - run: name: Run tests - command: echo "run test" + command: circleci run release plan hello - run: name: Run linting command: echo "run linting" From fa99579bee7b745e535adc86894d4c1bf6d11ee3 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Wed, 19 Nov 2025 15:58:51 -0600 Subject: [PATCH 2/3] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 03d3c03..f32b787 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: - checkout - run: name: Run tests - command: circleci run release plan hello + command: circleci run release plan "hello" - run: name: Run linting command: echo "run linting" From ce693c402e43439e41f02b381d834131ab757402 Mon Sep 17 00:00:00 2001 From: Henna <62267575+HennaAbbas@users.noreply.github.com> Date: Wed, 19 Nov 2025 16:22:10 -0600 Subject: [PATCH 3/3] Update config.yml --- .circleci/config.yml | 125 ++++++++----------------------------------- 1 file changed, 22 insertions(+), 103 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f32b787..1d9c494 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,114 +1,33 @@ version: 2.1 -# Define executors -executors: - node-executor: - docker: - - image: cimg/node:18.17 - working_directory: ~/project -# Define jobs -jobs: - # Job that always runs - test: - executor: node-executor - steps: - - checkout - - run: - name: Run tests - command: circleci run release plan "hello" - - run: - name: Run linting - command: echo "run linting" - - # Job that always runs - build: - executor: node-executor - steps: - - checkout - - - run: - name: Run tests - command: echo "run test" - - run: - name: Run linting - command: echo "run linting" - # Conditional job - only runs on main branch +jobs: deploy: - executor: node-executor - steps: - - - run: - name: Deploy to production - command: | - echo "Deploying to production..." - # Add your deployment commands here - # e.g., aws s3 sync dist/ s3://my-bucket/ - # e.g., kubectl apply -f k8s/ - echo "Deployment completed!" - - # Another conditional job - only runs on feature branches - integration-test: - executor: node-executor + docker: + - image: cimg/base:stable + parameters: + environment: + type: string + region: + type: string steps: + - checkout - run: - name: Run integration tests + name: Deploy to << parameters.environment >>-<< parameters.region >> command: | - echo "Running integration tests..." - # Add integration test commands here - + echo "Deploying to << parameters.environment >> in << parameters.region >>" + # Your deployment commands here -# Define workflows workflows: - version: 2 - build-test-deploy: - jobs: - # These jobs run on every commit - - test - - build: - requires: - - test - - # Conditional job: Deploy only runs on main branch - - deploy: - requires: - - build - filters: - branches: - only: main - - # Conditional job: Integration tests only run on feature branches - - integration-test: - requires: - - build - filters: - branches: - ignore: - - main - - develop - - # Alternative workflow that runs only on tags - release: + deploy-all-environments: jobs: - - test: - filters: - tags: - only: /^v.*/ - branches: - ignore: /.*/ - - build: - requires: - - test - filters: - tags: - only: /^v.*/ - branches: - ignore: /.*/ - deploy: - requires: - - build - filters: - tags: - only: /^v.*/ - branches: - ignore: /.*/ + matrix: + parameters: + environment: ["dev", "staging", "prod"] + region: ["us", "eu", "apac"] + notify: + on-success: true + matrix-filter: + environment: dev + region: us