Skip to content

Commit

Permalink
Setup sentry releases
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Jul 11, 2024
1 parent 23ac738 commit e502029
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/switch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ jobs:
[
{
"identifier": "switch-staging",
"environment": "staging",
"branch": "develop",
"image_tag": "staging",
"ecs_service": "switch-staging",
"ecs_cluster": "somleng-switch-staging"
},
{
"identifier": "switch",
"environment": "production",
"branch": "master",
"image_tag": "latest",
"ecs_service": "switch",
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit e502029

Please sign in to comment.