Skip to content

Commit

Permalink
ci: handle sentry-project and newrelic-guid
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaycicekli committed Oct 7, 2024
1 parent 8d0e8ef commit 98780f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
uses: ./.github/workflows/reusable-docker-publish.yaml
with:
environment: ${{ startsWith(github.ref, 'refs/tags/') && 'prod' || 'dev' }}
sentry-project: "microsoft-teams-app"
secrets: inherit
7 changes: 5 additions & 2 deletions .github/workflows/reusable-docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
ref:
required: false
type: string
sentry-project:
type: string
required: false

jobs:
build-and-push:
Expand Down Expand Up @@ -116,8 +119,8 @@ jobs:
--arg v "${{ env.version }}" \
--arg c "${{ env.commit-id }}" \
--arg e "${{ inputs.environment }}" \
--arg n "${{ secrets.NEWRELIC_APPLICATION_GUID }}" \
--arg s "$APP_NAME" \
--arg n "${{ inputs.sentry-project != '' && secrets.NEWRELIC_APPLICATION_GUID || '' }}" \
--arg s "${{ inputs.sentry-project }}" \
'{"app-name": $a, "branch": $b, "version": $v, "tag": $t, "commit-id": $c, "environment": $e, "newrelic-guid": $n, "sentry-project": $s }'
)
echo $JSON_DATA | gh workflow run deploy-app.yaml --repo zeplin/infra --json
Expand Down

0 comments on commit 98780f3

Please sign in to comment.