diff --git a/.github/workflows/services.yml b/.github/workflows/services.yml index 6f7e7fab6..149c5da44 100644 --- a/.github/workflows/services.yml +++ b/.github/workflows/services.yml @@ -60,11 +60,13 @@ jobs: [ { "identifier": "switch-services-staging", + "environment": "staging", "branch": "develop", "image_tag": "staging" }, { "identifier": "switch-services", + "environment": "production", "branch": "master", "image_tag": "latest" } @@ -100,6 +102,15 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Create Sentry release + uses: getsentry/action-release@v1 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: somleng + SENTRY_PROJECT: somleng-switch-services + with: + environment: ${{ matrix.environment }} + - name: Configure AWS credentials id: aws-login uses: aws-actions/configure-aws-credentials@v4 diff --git a/.github/workflows/switch.yml b/.github/workflows/switch.yml index a908a1fc4..4cf92e966 100644 --- a/.github/workflows/switch.yml +++ b/.github/workflows/switch.yml @@ -59,6 +59,7 @@ jobs: [ { "identifier": "switch-staging", + "environment": "staging", "branch": "develop", "image_tag": "staging", "ecs_service": "switch-staging", @@ -66,6 +67,7 @@ jobs: }, { "identifier": "switch", + "environment": "production", "branch": "master", "image_tag": "latest", "ecs_service": "switch", @@ -103,6 +105,15 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Create Sentry release + uses: getsentry/action-release@v1 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: somleng + SENTRY_PROJECT: somleng-switch + with: + environment: ${{ matrix.environment }} + - name: Setup Ruby uses: ruby/setup-ruby@v1