Skip to content

Commit

Permalink
[#1515] Update CI apk-release to include all Sentry env variables
Browse files Browse the repository at this point in the history
Update readme to guide where to generate Sentry Auth Token
  • Loading branch information
ifirmawan committed May 29, 2024
1 parent 80b34c2 commit 993428b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/apk-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
run: |
echo "SENTRY_ENV='production'" >> $GITHUB_ENV
env:
SENTRY_ENV: ${{ env.SENTRY_ENV }}
SENTRY_DSN: ${{ secrets.SENTRY_MOBILE_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_MOBILE_AUTH_TOKEN }}

- name: 📦 Install dependencies
run: |
Expand Down Expand Up @@ -101,6 +107,9 @@ jobs:
env:
APK_VERSION: ${{ env.APK_VERSION }}
SECRET: ${{ secrets.APK_UPLOAD_SECRET }}
SENTRY_ENV: ${{ env.SENTRY_ENV }}
SENTRY_DSN: ${{ secrets.SENTRY_MOBILE_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_MOBILE_AUTH_TOKEN }}
run: |
curl -X 'POST' \
'https://rtmis.akvotest.org/api/v1/device/apk/upload' \
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ jobs:
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
run: |
echo "SENTRY_ENV='production'" >> $GITHUB_ENV
env:
SENTRY_ENV: ${{ env.SENTRY_ENV }}
SENTRY_DSN: ${{ secrets.SENTRY_MOBILE_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_MOBILE_AUTH_TOKEN }}

- name: 📦 Install dependencies
run: |
Expand Down Expand Up @@ -183,6 +189,9 @@ jobs:
env:
APK_VERSION: ${{ env.APK_VERSION }}
SECRET: ${{ secrets.APK_UPLOAD_SECRET }}
SENTRY_ENV: ${{ env.SENTRY_ENV }}
SENTRY_DSN: ${{ secrets.SENTRY_MOBILE_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_MOBILE_AUTH_TOKEN }}
run: |
curl -X 'POST' \
'https://rtmis.akvo.org/api/v1/device/apk/upload' \
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ SENTRY_MOBILE_DSN="<<your_sentry_mobile_DSN>>"
SENTRY_MOBILE_AUTH_TOKEN="<<your_sentry_mobile_auth_token>>"
```


You can generate a Sentry auth token by following [this official Sentry documentation](https://docs.sentry.io/account/auth-tokens/).

#### Start

For initial run, you need to create a new docker volume.
Expand Down

0 comments on commit 993428b

Please sign in to comment.