-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (50 loc) · 1.72 KB
/
instant-sync-events.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
name: Instant Sync Events
on:
pull_request:
paths:
- 'infrastructure/instant-sync-events/**'
- 'packages/**'
- 'docker-compose.yml'
- 'lambdas/instant-sync-events/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/instant-sync-events.yml'
- '.github/workflows/reuse-*.yml'
push:
branches:
- main
- dev
paths:
- 'infrastructure/instant-sync-events/**'
- 'packages/**'
- 'lambdas/instant-sync-events/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/instant-sync-events.yml'
- '.github/workflows/reuse-*.yml'
jobs:
infrastructure:
uses: ./.github/workflows/reuse-infrastructure.yml
with:
scope: '@infrastructure/instant-sync-events'
stack-output-path: infrastructure/instant-sync-events/cdktf.out/stacks/instant-sync-events
secrets: inherit
lambda:
uses: ./.github/workflows/reuse-build-and-push-lambda.yml
needs: [infrastructure]
with:
scope: '@lambda/instant-sync-events'
sentry-project: instant-sync-events
s3-bucket-pattern: pocket-instantsyncevents-{0}-eventtracker
codedeploy-app-name-pattern: InstantSyncEvents-{0}-EventTracker-Lambda
codedeploy-group-name-pattern: InstantSyncEvents-{0}-EventTracker-Lambda
function-name-pattern: InstantSyncEvents-{0}-EventTracker-Function
secrets: inherit
sentry:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
uses: ./.github/workflows/reuse-sentry-release.yml
needs: [lambda]
with:
sentry-project: instant-sync-events
sentry-environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'development' }}
secrets: inherit