Skip to content

Commit

Permalink
test deployment with circelci (#37)
Browse files Browse the repository at this point in the history
* test deployment with circelci

* test deployment with circelci

* add kubernetes command

---------

Co-authored-by: Somanath Hugar <[email protected]>
  • Loading branch information
somanath21 and Somanath Hugar authored Jul 21, 2023
1 parent 4727a78 commit 2c22b30
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
version: 2.1
orbs:
slack: circleci/[email protected]
helm: circleci/[email protected]
aws-eks: circleci/[email protected]
kubernetes: circleci/[email protected]
jobs:
deploy-helm-chart:
docker:
- image: cimg/python:3.10
parameters:
cluster-name:
description: "sit"
type: string
environment:
TERM: dumb
steps:
- checkout
- kubernetes/install-kubectl
- aws-eks/update-kubeconfig-with-authenticator:
cluster-name: "sit"
aws-region: "us-east-2"
- helm/install-helm-client:
version: "v3.8.2"
- run: helm ls --namespace=fineract
- run: echo $AWS_PROFILE
- run: echo $AWS_DEFAULT_PROFILE
- run: kubectl config use-context arn:aws:eks:us-east-2:419830066942:cluster/sit
- run: kubectl config get-contexts
- run: rm -f helm/g2pconnect-superset/Chart.lock helm/g2pconnect-superset/requirements.lock helm/g2pconnect-superset/charts/*
- run: helm dep up helm/g2pconnect-superset
- run: helm upgrade -f helm/g2pconnect-superset/values.yaml fineract helm/g2pconnect-superset --install --create-namespace --namespace fineract
migrating-tenants:
docker:
- image: 'cimg/base:2023.07'
steps:
- kubernetes/install-kubectl
- run: sleep 180
- run: echo $AWS_PROFILE
- run: echo $AWS_DEFAULT_PROFILE
- run: kubectl config use-context arn:aws:eks:us-east-2:419830066942:cluster/sit
- run: kubectl delete pods -n fineract `kubectl get pods -n fineract | grep fineract-server | cut -d " " -f1`
workflows:
version: 2
build-and-test:
jobs:
- deploy-helm-chart:
cluster-name: sit
context:
- AWS
- Helm
- slack
- Secrets
- migrating-tenants:
cluster-name: sit
requires:
- deploy-helm-chart
context:
- AWS
- Helm
- slack
- Secrets

0 comments on commit 2c22b30

Please sign in to comment.