-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (51 loc) · 1.56 KB
/
deploy-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Deploys released tag to production
name: "Deploy: release"
on:
release:
types:
- released
jobs:
release:
uses: ./.github/workflows/use-deploy-ecs.yml
with:
deployment-env: prod
extra-docker-tag: ${{ github.event.release.tag_name }}
secrets:
aws-account-id: ${{ secrets.TID_AWS_ACCOUNT_ID }}
aws-role-arn: ${{ secrets.AWS_ROLE_ARN }}
docker-repo: ${{ secrets.DOCKER_REPO }}
notify:
needs: [release]
uses: ./.github/workflows/use-notify-slack.yml
if: ${{ !cancelled() }}
secrets:
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
with:
job-status: ${{ needs.release.result }}
success-message: |
:t-intensifies: `prod` updated to release `${{ github.event.release.tag_name }}`
failure-message: |
release `${{ github.event.release.tag_name }}` failed to update `prod`
sentry:
needs: [release]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: getsentry/action-release@v1.7.0
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: mbtace
SENTRY_PROJECT: mbta-dotcom
with:
environment: prod
version: ${{ github.event.release.tag_name }}
- uses: getsentry/action-release@v1.7.0
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: mbtace
SENTRY_PROJECT: mbta-site
with:
environment: prod
version: ${{ github.event.release.tag_name }}