-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (63 loc) · 2.36 KB
/
fxa-webhook-proxy.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
58
59
60
61
62
63
64
65
66
67
68
name: FxA Webhook Proxy
on:
pull_request:
paths:
- 'infrastructure/fxa-webhook-proxy/**'
- 'packages/**'
- 'docker-compose.yml'
- 'lambdas/fxa-webhook-proxy-gateway/**'
- 'lambdas/fxa-webhook-proxy-sqs/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/fxa-webhook-proxy.yml'
- '.github/workflows/reuse-*.yml'
push:
branches:
- main
- dev
paths:
- 'infrastructure/fxa-webhook-proxy/**'
- 'packages/**'
- 'lambdas/fxa-webhook-proxy-gateway/**'
- 'lambdas/fxa-webhook-proxy-sqs/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/fxa-webhook-proxy.yml'
- '.github/workflows/reuse-*.yml'
jobs:
infrastructure:
uses: ./.github/workflows/reuse-infrastructure.yml
with:
scope: '@infrastructure/fxa-webhook-proxy'
stack-output-path: infrastructure/fxa-webhook-proxy/cdktf.out/stacks/fxa-webhook-proxy
secrets: inherit
sqs-lambda:
uses: ./.github/workflows/reuse-build-and-push-lambda.yml
needs: [infrastructure]
with:
scope: '@lambda/fxa-webhook-proxy-sqs'
sentry-project: fxa-webhook-proxy
s3-bucket-pattern: pocket-fxawebhookproxy-{0}-sqs-fxa-events
codedeploy-app-name-pattern: FxAWebhookProxy-{0}-Sqs-FxA-Events-Lambda
codedeploy-group-name-pattern: FxAWebhookProxy-{0}-Sqs-FxA-Events-Lambda
function-name-pattern: FxAWebhookProxy-{0}-Sqs-FxA-Events-Function
secrets: inherit
gateway-lambda:
uses: ./.github/workflows/reuse-build-and-push-lambda.yml
needs: [infrastructure]
with:
scope: '@lambda/fxa-webhook-proxy-gateway'
sentry-project: fxa-webhook-proxy
s3-bucket-pattern: pocket-fxawebhookproxy-{0}-apigateway-fxa-events
codedeploy-app-name-pattern: FxAWebhookProxy-{0}-ApiGateway-FxA-Events-Lambda
codedeploy-group-name-pattern: FxAWebhookProxy-{0}-ApiGateway-FxA-Events-Lambda
function-name-pattern: FxAWebhookProxy-{0}-ApiGateway-FxA-Events-Function
secrets: inherit
sentry:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
uses: ./.github/workflows/reuse-sentry-release.yml
needs: [sqs-lambda, gateway-lambda]
with:
sentry-project: annotations-api
sentry-environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'development' }}
secrets: inherit