-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
58 lines (57 loc) · 1.54 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
48
49
50
51
52
53
54
55
56
57
58
apiVersion: skaffold/v2beta24
kind: Config
metadata:
name: demo-1
profiles:
- name: local
activation:
- command: dev
build:
tagPolicy:
gitCommit: {}
artifacts:
- image: demo-1
custom:
buildCommand: |
make go.build PLATFORM=linux_$HOSTARCH
make -C cluster/images/demo-1 img.build IMAGE=$IMAGE IMAGE_PLATFORMS=linux/$HOSTARCH
dependencies:
paths:
- cmd
- internal
- cluster/images/demo-1/Dockerfile
ignore:
- build
- .cache
- .github
- skaffold.yaml
- .work
- .vscode
deploy:
helm:
hooks:
before:
- host:
command: [
"sh",
"-c",
"kubectl create namespace argo-rollouts --dry-run=client -o yaml | kubectl apply -f -",
]
- host:
command: [
"sh",
"-c",
"kubectl apply -n argo-rollouts -f https://github.com/argoproj/argo-rollouts/releases/download/v1.2.0/install.yaml"
]
releases:
- name: demo-1
chartPath: cluster/charts/demo-1
namespace: default
createNamespace: true
artifactOverrides:
image: demo-1
imageStrategy:
helm: {}
build:
local:
push: false