Skip to content

Commit

Permalink
chore: add sentry custom for azure CD
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 committed Mar 6, 2023
1 parent 5ae1942 commit fce5dcb
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/eoefans-api-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ on:
deploy_version:
required: true
type: string

sentry_release:
required: true
type: string
env:
AZURE_WEBAPP_NAME: "eoefans-api" # set this to your application's name
IMAGE_REGISTRY: "containers.vlink.dev"
IMAGE_REPO: "eoefans"
IMAGE_NAME: "eoefans-api"
DEPLOY_VERSION: ${{ inputs.deploy_version }}

SENTRY_RELEASE: ${{ inputs.sentry_release }}
SENTRY_ORG: "eoefans"
SENTRY_PROJECT: "eoefans-api"

Expand All @@ -30,15 +34,15 @@ jobs:
Deploy:
permissions:
contents: none

runs-on: [self-hosted, Linux]
environment:
name: 'Production-API'
# url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- uses: actions/checkout@v3

- name: Log in to VLINK Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -53,8 +57,9 @@ jobs:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_CREDENTIALS_EOEFANS_API }}
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.DEPLOY_VERSION }}

- name: Create Sentry release
if: ${{ (env.SENTRY_RELEASE == 'true') || (env.SENTRY_RELEASE == 'True') || (env.SENTRY_RELEASE == '1') }}
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
Expand Down

0 comments on commit fce5dcb

Please sign in to comment.