Skip to content

Commit 6291c9b

Browse files
committed
avniproject/avni-product#1445 | Fix circleci config
1 parent f3c3863 commit 6291c9b

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.circleci/config.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,33 @@ jobs:
212212
steps:
213213
- deploy:
214214
hostname: "ssh.server.openchs.org"
215+
RWB_STAGING_deploy:
216+
docker:
217+
- image: cimg/deploy:2023.09-node
218+
working_directory: ~/
219+
steps:
220+
- aws-cli/setup:
221+
role_arn: "arn:aws:iam::730335671779:role/avni_circleci_instance_connect"
222+
region: "ap-south-1"
223+
- setup_server_access:
224+
instance-id: "i-00b50ac6e8413fdca"
225+
availability-zone: "ap-south-1b"
226+
- deploy_ansible:
227+
env: "rwb-staging"
228+
229+
RWB_PROD_deploy:
230+
docker:
231+
- image: cimg/deploy:2023.09-node
232+
working_directory: ~/
233+
steps:
234+
- aws-cli/setup:
235+
role_arn: "arn:aws:iam::730335671779:role/avni_circleci_instance_connect"
236+
region: "ap-south-1"
237+
- setup_server_access:
238+
instance-id: "i-015a3839bfe137346"
239+
availability-zone: "ap-south-1a"
240+
- deploy_ansible:
241+
env: "rwb-prod"
215242

216243
tags_filter: &tags_filter
217244
filters:
@@ -282,6 +309,26 @@ workflows:
282309
context: non-prod-deploy
283310
requires:
284311
- PERF_approve
312+
- RWB_STAGING_approve:
313+
type: approval
314+
requires:
315+
- app_build
316+
- RWB_STAGING_deploy:
317+
context:
318+
- RWB_AWS_OIDC
319+
- non-prod-deploy
320+
requires:
321+
- RWB_STAGING_approve
322+
- RWB_PROD_approve:
323+
type: approval
324+
requires:
325+
- app_build
326+
- RWB_PROD_deploy:
327+
context:
328+
- RWB_AWS_OIDC
329+
- prod-deploy
330+
requires:
331+
- RWB_PROD_approve
285332
notify:
286333
webhooks:
287334
- url: https://webhooks.gitter.im/e/0fdffde721194986f2a0

0 commit comments

Comments
 (0)