-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test deployment with circelci * test deployment with circelci * add kubernetes command --------- Co-authored-by: Somanath Hugar <[email protected]>
- Loading branch information
1 parent
4727a78
commit 2c22b30
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |