-
Notifications
You must be signed in to change notification settings - Fork 5
/
skaffold.yml
44 lines (44 loc) · 1013 Bytes
/
skaffold.yml
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
apiVersion: skaffold/v4beta6
kind: Config
build:
artifacts:
- image: djangofluent
context: .
custom:
buildCommand: sh skaffold-builder.sh
#docker:
# useBuildkit: false
# buildArgs:
# GIT_VERSION: '{{if .IMAGE_TAG}}{{.IMAGE_TAG}}{{else}}0.0.0dev0{{end}}'
tagPolicy:
gitCommit:
ignoreChanges: true # no -dirty flag
test:
- image: djangofluent
custom:
- command: docker run -u root --rm $IMAGE py.test --cov --nomigrations
profiles:
- name: dev
manifests:
kustomize:
paths:
- deployment/kustomize/environments/dev
deploy:
kubectl: {}
kubeContext: docker-desktop
- name: tst
manifests:
kustomize:
paths:
- deployment/kustomize/environments/tst
deploy:
kubectl: {}
kubeContext: k3s
- name: prd
manifests:
kustomize:
paths:
- deployment/kustomize/environments/prd
deploy:
kubectl: {}
kubeContext: k3s