-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathskaffold.yaml
43 lines (42 loc) · 914 Bytes
/
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
apiVersion: skaffold/v2beta4
kind: Config
build:
tagPolicy:
sha256: {}
# defines where to find the code at build time and where to push the resulting image
artifacts:
- image: nodejs-guestbook-backend
context: src/backend
sync:
infer:
- '**/*'
- image: nodejs-guestbook-frontend
context: src/frontend
sync:
infer:
- '**/*'
# defines the Kubernetes manifests to deploy on each run
deploy:
kubectl:
manifests:
- ./k8s/*
profiles:
# use the cloudbuild profile to build images using Google Cloud Build
- name: cloudbuild
build:
googleCloudBuild: {}
artifacts:
- image: nodejs-guestbook-backend
context: src/backend
sync:
infer:
- '**/*'
kaniko:
cache: {}
- image: nodejs-guestbook-frontend
context: src/frontend
sync:
infer:
- '**/*'
kaniko:
cache: {}