-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathskaffold.yaml
86 lines (86 loc) · 2.87 KB
/
skaffold.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
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
# Image registry should be same as created in digitalocean_container_registry (infrastructure/main.tf)
apiVersion: skaffold/v2beta25
kind: Config
profiles:
- name: production
build:
artifacts:
- image: ghcr.io/karanpratapsingh/hypertrade/proxy
context: ./services/proxy
- image: ghcr.io/karanpratapsingh/hypertrade/nats
context: ./services/nats
- image: ghcr.io/karanpratapsingh/hypertrade/web
context: ./services/web
docker:
target: production
- image: ghcr.io/karanpratapsingh/hypertrade/exchange
context: ./services/exchange
docker:
target: production
- image: ghcr.io/karanpratapsingh/hypertrade/notification
context: ./services/notification
docker:
target: production
- image: ghcr.io/karanpratapsingh/hypertrade/strategy
context: ./services/strategy
- name: development
build:
artifacts:
- image: ghcr.io/karanpratapsingh/hypertrade/proxy
context: ./services/proxy
- image: ghcr.io/karanpratapsingh/hypertrade/nats
context: ./services/nats
- image: ghcr.io/karanpratapsingh/hypertrade/web
context: ./services/web
docker:
target: development
sync:
manual:
- src: "src/**/*.ts*"
dest: .
- image: ghcr.io/karanpratapsingh/hypertrade/exchange
context: ./services/exchange
docker:
target: development
sync:
manual:
- src: "**/*.go"
dest: .
- image: ghcr.io/karanpratapsingh/hypertrade/notification
context: ./services/notification
docker:
target: development
sync:
manual:
- src: "**/*.go"
dest: .
- image: ghcr.io/karanpratapsingh/hypertrade/strategy
context: ./services/strategy
deploy:
helm:
releases:
- name: app
namespace: hypertrade
createNamespace: true
chartPath: infrastructure/k8s
valuesFiles:
- infrastructure/k8s/values.yaml
- infrastructure/k8s/env.yaml
artifactOverrides:
images.proxy: ghcr.io/karanpratapsingh/hypertrade/proxy
images.nats: ghcr.io/karanpratapsingh/hypertrade/nats
images.exchange: ghcr.io/karanpratapsingh/hypertrade/exchange
images.notification: ghcr.io/karanpratapsingh/hypertrade/notification
images.strategy: ghcr.io/karanpratapsingh/hypertrade/strategy
images.web: ghcr.io/karanpratapsingh/hypertrade/web
portForward:
- resourceName: proxy
resourceType: service
namespace: hypertrade
port: 8080
localPort: 8080
- resourceName: db
resourceType: service
namespace: hypertrade
port: 5432
localPort: 5432