Skip to content

Commit

Permalink
avniproject/avni-product#1445 | Fix circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Feb 5, 2024
1 parent f3c3863 commit 6291c9b
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 6291c9b

Please sign in to comment.