From fb693804717f84c304301d6cdb26d6f0ee595746 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Tue, 14 Nov 2023 19:46:06 +0530 Subject: [PATCH 01/14] add job to deploy to GKE Meghalaya (#6594) --- .github/workflows/deploy.yaml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4d2333212b4..67628d414c8 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -431,3 +431,45 @@ jobs: cd kube/deployments/ sed -i -e "s/_BUILD_NUMBER_/${GITHUB_RUN_NUMBER}/g" care-fe.yaml kubectl apply -f care-fe.yaml + + deploy-production-meghalaya: + needs: build-production + name: Deploy to GKE Meghalaya + runs-on: ubuntu-latest + environment: + name: Production-Meghalaya + url: https://care.meghealth.gov.in + steps: + - name: Checkout Kube Config + uses: actions/checkout@v3 + with: + repository: coronasafe/ml-care-infra + token: ${{ secrets.GIT_ACCESS_TOKEN }} + path: kube + ref: main + + # Setup gcloud CLI + - uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7 + with: + service_account_key: ${{ secrets.GKE_SA_KEY }} + project_id: ${{ secrets.GKE_PROJECT }} + + # Get the GKE credentials, so we can deploy to the cluster + - uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e + with: + cluster_name: ${{ secrets.GKE_CLUSTER }} + location: ${{ secrets.GKE_ZONE }} + credentials: ${{ secrets.GKE_SA_KEY }} + + - name: install kubectl + uses: azure/setup-kubectl@v3.0 + with: + version: "v1.23.6" + id: install + + - name: Deploy Care Fe Production + run: | + mkdir -p $HOME/.kube/ + cd kube/deployments/ + sed -i -e "s/_BUILD_NUMBER_/${GITHUB_RUN_NUMBER}/g" care-fe.yaml + kubectl apply -f care-fe.yaml From 03b8e0a395a56801dbb295b2c9d2a482332283ec Mon Sep 17 00:00:00 2001 From: Ashraf Mohammed <98876115+AshrafMd-1@users.noreply.github.com> Date: Wed, 15 Nov 2023 17:15:22 +0530 Subject: [PATCH 02/14] fix dosage (#6626) --- src/Components/Form/FormFields/NumericWithUnitsFormField.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx b/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx index 02aa03fdf71..02f98a7ba17 100644 --- a/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx +++ b/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx @@ -35,7 +35,9 @@ export default function NumericWithUnitsFormField(props: Props) { autoComplete={props.autoComplete} required={field.required} value={numValue} - onChange={(e) => field.handleChange(e.target.value + " " + unitValue)} + onChange={(e) => + field.handleChange(Number(e.target.value) + " " + unitValue) + } />