Skip to content

Commit

Permalink
feat: add release tracking on sentry (#1590)
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak authored Sep 11, 2023
1 parent 51e52df commit 912be96
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,15 @@ jobs:
cluster: ${{ env.ECS_CLUSTER }}
wait-for-service-stability: true

- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: staging-egov


deploy-production-manipur:
needs: build-production
Expand Down Expand Up @@ -350,6 +359,15 @@ jobs:
kubectl apply -f care-celery-beat.yaml
kubectl apply -f care-celery-worker.yaml
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: prod-manipur

deploy-production-karnataka:
needs: build-production
name: Deploy to GKE Karnataka
Expand Down Expand Up @@ -396,6 +414,15 @@ jobs:
kubectl apply -f care-celery-beat.yaml
kubectl apply -f care-celery-worker.yaml
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: prod-karnataka

deploy-production-assam:
needs: build-production
name: Deploy to GKE Assam
Expand Down Expand Up @@ -442,6 +469,15 @@ jobs:
kubectl apply -f care-celery-beat.yaml
kubectl apply -f care-celery-worker.yaml
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: prod-assam

deploy-production-sikkim:
needs: build-production
name: Deploy to GKE Sikkim
Expand Down Expand Up @@ -488,6 +524,15 @@ jobs:
kubectl apply -f care-celery-beat.yaml
kubectl apply -f care-celery-worker.yaml
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: prod-sikkim

deploy-production-nagaland:
needs: build-production
name: Deploy to GKE Nagaland
Expand Down Expand Up @@ -533,3 +578,12 @@ jobs:
kubectl apply -f care-backend.yaml
kubectl apply -f care-celery-beat.yaml
kubectl apply -f care-celery-worker.yaml
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: prod-nagaland

0 comments on commit 912be96

Please sign in to comment.