-
Notifications
You must be signed in to change notification settings - Fork 0
/
garden.yaml
55 lines (51 loc) · 1.04 KB
/
garden.yaml
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
kind: Build
name: democracy-api
type: container
spec:
targetStage: build_stage
---
kind: Deploy
name: democracy-api
type: kubernetes
dependencies:
- build.democracy-api
- deploy.mongo
timeout: 30
spec:
defaultTarget:
kind: Deployment
name: democracy-api
files:
- ./infra/manifests/*
sync:
paths:
- containerPath: /app/src
sourcePath: src
mode: one-way
overrides:
- command: [yarn, dev]
patchResources:
- name: democracy-api
kind: Deployment
patch:
spec:
template:
spec:
containers:
- name: democracy-api
image: ${actions.build.democracy-api.outputs.deploymentImageId}
resources:
limits:
cpu: '2'
memory: '2048Mi'
---
kind: Test
name: democracy-api-integration
type: kubernetes-exec
dependencies:
- deploy.democracy-api
spec:
resource:
kind: Deployment
name: democracy-api
command: [yarn, test:integration]