-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
47 lines (47 loc) · 1.17 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
# like a docker compose for local development
# https://skaffold.dev/docs/references/yaml/
apiVersion: skaffold/v1beta12
kind: Config
deploy:
kubectl:
manifests:
- ./k8s/*
- ./k8s-local/*
build:
# images that we want skaffold to manage
local:
# by default skaffold tries to push to docker hub
# we will want to omit it
push: false
artifacts:
- image: piotrlipiarz/multi-client
# context is folder
context: client
docker:
dockerfile: Dockerfile.dev
sync:
# anytime JS file changed take it and throw it to container
manual:
# if we change some other files, Skaffold will rebuild entire container
- src: '**/*.js'
dest: .
- src: '**/*.css'
dest: .
- src: '**/*.html'
dest: .
- image: piotrlipiarz/multi-worker
context: worker
docker:
dockerfile: Dockerfile.dev
sync:
manual:
- src: "*.js"
dest: .
- image: piotrlipiarz/multi-server
context: server
docker:
dockerfile: Dockerfile.dev
sync:
manual:
- src: "*.js"
dest: .