From 6291c9b03395f468c2b91147a9e6bdc39f38d256 Mon Sep 17 00:00:00 2001 From: himeshr Date: Mon, 5 Feb 2024 12:38:51 +0530 Subject: [PATCH] avniproject/avni-product#1445 | Fix circleci config --- .circleci/config.yml | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c15f5b4..2bf630e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -212,6 +212,33 @@ jobs: steps: - deploy: hostname: "ssh.server.openchs.org" + RWB_STAGING_deploy: + docker: + - image: cimg/deploy:2023.09-node + working_directory: ~/ + steps: + - aws-cli/setup: + role_arn: "arn:aws:iam::730335671779:role/avni_circleci_instance_connect" + region: "ap-south-1" + - setup_server_access: + instance-id: "i-00b50ac6e8413fdca" + availability-zone: "ap-south-1b" + - deploy_ansible: + env: "rwb-staging" + + RWB_PROD_deploy: + docker: + - image: cimg/deploy:2023.09-node + working_directory: ~/ + steps: + - aws-cli/setup: + role_arn: "arn:aws:iam::730335671779:role/avni_circleci_instance_connect" + region: "ap-south-1" + - setup_server_access: + instance-id: "i-015a3839bfe137346" + availability-zone: "ap-south-1a" + - deploy_ansible: + env: "rwb-prod" tags_filter: &tags_filter filters: @@ -282,6 +309,26 @@ workflows: context: non-prod-deploy requires: - PERF_approve + - RWB_STAGING_approve: + type: approval + requires: + - app_build + - RWB_STAGING_deploy: + context: + - RWB_AWS_OIDC + - non-prod-deploy + requires: + - RWB_STAGING_approve + - RWB_PROD_approve: + type: approval + requires: + - app_build + - RWB_PROD_deploy: + context: + - RWB_AWS_OIDC + - prod-deploy + requires: + - RWB_PROD_approve notify: webhooks: - url: https://webhooks.gitter.im/e/0fdffde721194986f2a0