Repository navigation
Expand file tree
/
Copy pathskaffold.yaml
More file actions
62 lines (61 loc) · 1.38 KB
/
Copy pathskaffold.yaml
File metadata and controls
62 lines (61 loc) · 1.38 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: skaffold/v2beta6
kind: Config
metadata:
name: webapp
build:
tagPolicy:
gitCommit:
variant: AbbrevCommitSha
artifacts:
- image: registry.ngaxavilabs.com/devops/webapp
context: .
docker:
dockerfile: Dockerfile
buildArgs:
TARGET: dev
cacheFrom:
- registry.ngaxavilabs.com/devops/webapp:latest
deploy:
kubectl:
manifests:
- k8s/dev-deployment.yaml
profiles:
- name: dev
patches:
- op: add
path: /build/tagPolicy/gitCommit/prefix
value: dev-
deploy:
kubectl:
manifests:
- k8s/dev-deployment.yaml
flags:
disableValidation: false
- name: production
patches:
- op: replace
path: /build/artifacts/0/docker/buildArgs/TARGET
value: prod
- op: replace
path: /build/tagPolicy/gitCommit/variant
value: Tags
deploy:
kubectl:
manifests:
- k8s/production-deployment.yaml
flags:
disableValidation: false
- name: staging
patches:
- op: replace
path: /build/artifacts/0/docker/buildArgs/TARGET
value: staging
- op: add
path: /build/tagPolicy/gitCommit/prefix
value: staging-
deploy:
kubectl:
manifests:
- k8s/staging-deployment.yaml
flags:
disableValidation: false