-
Notifications
You must be signed in to change notification settings - Fork 1
/
skaffold.yaml
45 lines (45 loc) · 1.52 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
apiVersion: skaffold/v2alpha3
kind: Config
# Describes which directory to watch for all config files
# Starting skaffold will create all the objects from those config files
deploy:
kubectl:
manifests:
- ./infra/k8s/*
# Describes how to build with skaffold
build:
# Describes not to push the changed images to Dockerhub (which is the default feature)
local:
push: false
# Describes something inside our project that it needs to be maintained
artifacts:
# Describes to create an image using the Dockerfile inside the auth directory with
# image name as shreyanshshrey/ticketing-app-auth
- image: shreyanshshrey/ticketing-app-auth
context: auth
docker:
dockerfile: Dockerfile
# Describes that whenever there is changes in one of the 'src/**/*.ts' files, we do not
# need to build image from scratch and throw the changes directly into the pod
sync:
manual:
- src: 'src/**/*.ts'
dest: .
- image: shreyanshshrey/ticketing-app-client
context: client
docker:
dockerfile: Dockerfile
sync:
manual:
- src: '**/*.js'
dest: .
- image: shreyanshshrey/ticketing-app-tickets
context: tickets
docker:
dockerfile: Dockerfile
# Describes that whenever there is changes in one of the 'src/**/*.ts' files, we do not
# need to build image from scratch and throw the changes directly into the pod
sync:
manual:
- src: 'src/**/*.ts'
dest: .