-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (41 loc) · 1.13 KB
/
client-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
name: Client API
on:
pull_request:
paths:
- 'infrastructure/client-api/**'
- 'packages/**'
- 'docker-compose.yml'
- 'servers/client-api/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/client-api.yml'
- '.github/workflows/reuse-*.yml'
push:
branches:
- main
- dev
paths:
- 'infrastructure/client-api/**'
- 'packages/**'
- 'servers/client-api/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/client-api.yml'
- '.github/workflows/reuse-*.yml'
jobs:
infrastructure:
uses: ./.github/workflows/reuse-infrastructure.yml
with:
scope: client-api-cdk
stack-output-path: infrastructure/client-api/cdktf.out/stacks/client-api
secrets: inherit
api:
uses: ./.github/workflows/reuse-build-and-push-image.yml
needs: [infrastructure]
with:
scope: client-api
docker-repo-name-pattern: clientapi-{0}-app
context: servers/client-api
app-path: servers/client-api
terraform-output: ${{needs.infrastructure.outputs.terraform-output}}
secrets: inherit