forked from dsyer/kubernetes-intro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
35 lines (34 loc) · 951 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
apiVersion: skaffold/v2beta5
kind: Config
metadata:
name: app
build:
insecureRegistries:
- 192.168.100.189:5000
artifacts:
- image: 192.168.100.189:5000/apps/demo
custom:
buildCommand: mvn spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.imageName=%IMAGE% && docker push %IMAGE%
dependencies:
paths:
- pom.xml
- src/main/resources
- target/classes
sync:
manual:
- src: "src/main/resources/**/*"
dest: /workspace/BOOT-INF/classes
strip: src/main/resources/
- src: "target/classes/**/*"
dest: /workspace/BOOT-INF/classes
strip: target/classes/
deploy:
kubeContext: minikube
kustomize:
paths:
- "src/k8s/demo/"
#portForward:
# - resourceType: pod
# resourceName: app
# port: 8080 #
# localPort: 8080 # *Optional*