-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
47 lines (46 loc) · 2.02 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
apiVersion: skaffold/v2alpha3
kind: Config
deploy:
kubectl:
# manifests === all dirs we want to sync # i.e. the Kkubernetes yaml or json mainfests
manifests:
- ./infra/k8s/*
build:
#local:
# push: false
# googleCloudBuild === random ID assigned to yoyur GCP Project (e.g. pacific-destiny-23123)
googleCloudBuild:
projectId: ticketing-239039
artifacts: # <-- this is what actually sets up file-syncing
# image === images produced from sync'd dir
- image: us.gcr.io/ticketing-239039/auth
context: auth # "auth" reflected in us.grc.io path in the line right above
docker:
dockerfile: Dockerfile
sync:
manual:
# src === the set of files u want Skaffold to watch
- src: './auth/src/**/*.ts' # used to be 'src/**/*.ts' # glob pattern to matchh local paths against
dest: . # destination path in the container where files should be sync'd to
- image: us.gcr.io/ticketing-239039/auth-client # used to be summertinio/auth -- but since we're on GCP, format is: us.gcr.io/[projectId]/[context (below)]
context: auth-client # "auth" reflected in us.grc.io path in the line right above
docker:
dockerfile: Dockerfile
sync:
manual:
# src === the set of files u want Skaffold to watch
- src: './auth-client/pages/**/*.tsx' # used to be 'src/**/*.ts' # glob pattern to matchh local paths against
dest: . # destination path in the container where files should be sync'd to
- src: './auth-client/package.json'
dest: .
- image: us.gcr.io/ticketing-239039/tickets
context: tickets
docker:
dockerfile: Dockerfile
sync:
manual:
# src === the set of files u want Skaffold to watch
- src: './tickets/src/**/*.ts' # used to be 'src/**/*.ts' # glob pattern to matchh local paths against
dest: . # destination path in the container where files should be sync'd to
- src: './tickets/package.json'
dest: .