-
Notifications
You must be signed in to change notification settings - Fork 6
61 lines (58 loc) · 1.74 KB
/
v3-proxy-api.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
name: V3 Proxy API
on:
pull_request:
paths:
- 'infrastructure/v3-proxy-api/**'
- 'packages/**'
- 'docker-compose.yml'
- 'servers/v3-proxy-api/**'
- 'pnpm-lock.yaml'
- 'Dockerfile'
- '.github/actions/**'
- '.github/workflows/v3-proxy-api.yml'
- '.github/workflows/reuse-*.yml'
push:
branches:
- main
- dev
paths:
- 'infrastructure/v3-proxy-api/**'
- 'packages/**'
- 'servers/v3-proxy-api/**'
- 'pnpm-lock.yaml'
- 'Dockerfile'
- '.github/actions/**'
- '.github/workflows/v3-proxy-api.yml'
- '.github/workflows/reuse-*.yml'
jobs:
test-integrations:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/reuse-test-integrations.yml
with:
scope: '@server/v3-proxy-api'
secrets: inherit
infrastructure:
uses: ./.github/workflows/reuse-infrastructure.yml
with:
scope: '@infrastructure/v3-proxy-api'
stack-output-path: infrastructure/v3-proxy-api/cdktf.out/stacks/v3-proxy-api
secrets: inherit
api:
uses: ./.github/workflows/reuse-build-and-push-image.yml
needs: [infrastructure]
with:
scope: '@server/v3-proxy-api'
app-path: servers/v3-proxy-api
app-port: 4030
sentry-project: v3-proxy-api
docker-repo-name-pattern: v3proxyapi-{0}-app
terraform-output: ${{needs.infrastructure.outputs.terraform-output}}
secrets: inherit
sentry:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
uses: ./.github/workflows/reuse-sentry-release.yml
needs: [api]
with:
sentry-project: v3-proxy-api
sentry-environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'development' }}
secrets: inherit