Skip to content

Commit

Permalink
Merge pull request #1 from coronasafe/develop
Browse files Browse the repository at this point in the history
Update 1
  • Loading branch information
Pranshu1902 authored May 17, 2022
2 parents 1e477d6 + a0ee47c commit 167c366
Show file tree
Hide file tree
Showing 17 changed files with 7,454 additions and 403 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@
"rules": {
"quotes": ["error", "double"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"react/react-in-jsx-scope": "off"
},
"ignorePatterns": [
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,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-manipur:
if: github.ref == 'refs/heads/devops/add-mn-deploy'
name: Deploy to EKS Manipur
runs-on: ubuntu-latest
environment:
name: Production-Manipur
url: https://care.mn.gov.in
steps:
- name: Checkout Kube Config
uses: actions/checkout@v3
with:
repository: coronasafe/mn-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: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}

- name: install kubectl
uses: azure/[email protected]
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
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.15.0
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

6 changes: 4 additions & 2 deletions bsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "care_fe",
"reason": { "react-jsx": 3 },
"reason": {
"react-jsx": 3
},
"bsc-flags": ["-bs-super-errors"],
"sources": [
{
Expand All @@ -19,7 +21,7 @@
"@rescript/react",
"@glennsl/bs-json",
"bs-webapi",
"@jsiebern/bs-material-ui"
"rescript-material-ui"
],
"ppx-flags": [],
"refmt": 3,
Expand Down
1 change: 1 addition & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build]
publish = "build/"
environment = { NPM_FLAGS = "--legacy-peer-deps" }

[[redirects]]
from = "/api/*"
Expand Down
Loading

0 comments on commit 167c366

Please sign in to comment.