-
Notifications
You must be signed in to change notification settings - Fork 5
89 lines (84 loc) · 3.15 KB
/
account-data-deleter.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Account Data Deleter
on:
pull_request:
paths:
- 'infrastructure/account-data-deleter/**'
- 'packages/**'
- 'docker-compose.yml'
- 'servers/account-data-deleter/**'
- 'lambdas/account-data-deleter-batch-delete/**'
- 'lambdas/account-data-deleter-events/**'
- 'pnpm-lock.yaml'
- 'Dockerfile'
- '.github/actions/**'
- '.github/workflows/account-data-deleter.yml'
- '.github/workflows/reuse-*.yml'
push:
branches:
- main
- dev
paths:
- 'infrastructure/account-data-deleter/**'
- 'packages/**'
- 'servers/account-data-deleter/**'
- 'lambdas/account-data-deleter-batch-delete/**'
- 'lambdas/account-data-deleter-events/**'
- 'pnpm-lock.yaml'
- 'Dockerfile'
- '.github/actions/**'
- '.github/workflows/account-data-deleter.yml'
- '.github/workflows/reuse-*.yml'
jobs:
test-integrations:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/reuse-test-integrations.yml
with:
scope: account-data-deleter
secrets: inherit
infrastructure:
uses: ./.github/workflows/reuse-infrastructure.yml
with:
scope: account-data-deleter-cdk
stack-output-path: infrastructure/account-data-deleter/cdktf.out/stacks/account-data-deleter
secrets: inherit
api:
uses: ./.github/workflows/reuse-build-and-push-image.yml
needs: [infrastructure]
with:
scope: account-data-deleter
app-path: servers/account-data-deleter
app-port: 4015
sentry-project: account-data-deleter
docker-repo-name-pattern: accountdatadeleter-{0}-app
terraform-output: ${{needs.infrastructure.outputs.terraform-output}}
secrets: inherit
events-lambda:
uses: ./.github/workflows/reuse-build-and-push-lambda.yml
needs: [infrastructure]
with:
scope: account-data-deleter-events
sentry-project: account-data-deleter
s3-bucket-pattern: pocket-accountdatadeleter-{0}-sqs-event-consumer
codedeploy-app-name-pattern: AccountDataDeleter-{0}-Sqs-Event-Consumer-Lambda
codedeploy-group-name-pattern: AccountDataDeleter-{0}-Sqs-Event-Consumer-Lambda
function-name-pattern: AccountDataDeleter-{0}-Sqs-Event-Consumer-Function
secrets: inherit
batch-delete-lambda:
uses: ./.github/workflows/reuse-build-and-push-lambda.yml
needs: [infrastructure]
with:
scope: account-data-deleter-batch-delete
sentry-project: account-data-deleter
s3-bucket-pattern: pocket-accountdatadeleter-{0}-batchdeletelambda
codedeploy-app-name-pattern: AccountDataDeleter-{0}-BatchDeleteLambda-Lambda
codedeploy-group-name-pattern: AccountDataDeleter-{0}-BatchDeleteLambda-Lambda
function-name-pattern: AccountDataDeleter-{0}-BatchDeleteLambda-Function
secrets: inherit
sentry:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
uses: ./.github/workflows/reuse-sentry-release.yml
needs: [api, events-lambda, batch-delete-lambda]
with:
sentry-project: account-data-deleter
sentry-environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'development' }}
secrets: inherit