-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
47 lines (47 loc) · 1.3 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/v2beta16
kind: Config
metadata:
name: w16
build:
artifacts:
- image: europe-north1-docker.pkg.dev/com-seankhliao/kluster/w16
kaniko:
reproducible: true
singleSnapshot: true
skipUnusedStages: true
useNewRun: true
target: w16
whitelistVarRun: true
image: gcr.io/kaniko-project/executor:latest
registryMirror: mirror.gcr.io
buildArgs:
GOPROXY: http://athens.athens.svc.cluster.local
GOCACHE: /var/run/gobuildcache
GOMODCACHE: /var/run/gomodcache
volumeMounts:
- name: modcache
mountPath: /var/run/gomodcache
- name: buildcache
mountPath: /var/run/gobuildcache
cluster:
pullSecretName: kaniko-secret
pullSecretPath: kaniko-secret
namespace: skaffold
volumes:
- name: modcache
hostPath:
path: /opt/kind/cluster30/kaniko-gomodcache
- name: buildcache
hostPath:
path: /opt/kind/cluster30/kaniko-gobuildcache
deploy:
kubeContext: kind-cluster30
profiles:
- name: singlepage
patches:
- op: replace
path: /build/artifacts/0/image
value: europe-north1-docker.pkg.dev/com-seankhliao/kluster/singlepage
- op: replace
path: /build/artifacts/0/kaniko/target
value: singlepage