diff --git a/.github/workflows/eoefans-api-azure-deploy.yml b/.github/workflows/eoefans-api-azure-deploy.yml index 0ac4abb..8614aa2 100644 --- a/.github/workflows/eoefans-api-azure-deploy.yml +++ b/.github/workflows/eoefans-api-azure-deploy.yml @@ -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" @@ -30,7 +34,7 @@ jobs: Deploy: permissions: contents: none - + runs-on: [self-hosted, Linux] environment: name: 'Production-API' @@ -38,7 +42,7 @@ jobs: steps: - uses: actions/checkout@v3 - + - name: Log in to VLINK Container Registry uses: docker/login-action@v2 with: @@ -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 }}