Skip to content

Commit

Permalink
Merge pull request #1614 from coronasafe/sainak/fix/sentry-release
Browse files Browse the repository at this point in the history
fix sentry release tagging on checked out to a path other than Workspace
  • Loading branch information
mathew-alex authored Sep 15, 2023
2 parents 53fcdd1 + 41036d3 commit a8eff46
Showing 1 changed file with 18 additions and 55 deletions.
73 changes: 18 additions & 55 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ jobs:
cache-from: type=gha,scope=cached-stage
cache-to: type=gha,scope=cached-stage,mode=max

- 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

build-production:
needs: test
name: Build & Push Production to container registries
Expand Down Expand Up @@ -130,6 +139,15 @@ jobs:
cache-from: type=gha,scope=cached-stage
cache-to: type=gha,scope=cached-stage,mode=max

- 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: production

deploy-staging-egov:
needs: build-staging
name: Deploy to ECS API Egov
Expand Down Expand Up @@ -194,16 +212,6 @@ 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
name: Deploy to GKE Manipur
Expand Down Expand Up @@ -250,15 +258,6 @@ 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 @@ -305,15 +304,6 @@ 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 @@ -360,15 +350,6 @@ 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 @@ -415,15 +396,6 @@ 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 @@ -469,12 +441,3 @@ 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 a8eff46

Please sign in to comment.