-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathkiali.yaml
82 lines (75 loc) · 1.87 KB
/
kiali.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package:
name: kiali
version: "2.7.1"
epoch: 0
description: The Console for Istio Service Mesh
copyright:
- license: Apache-2.0
dependencies:
runtime:
- kiali-api
- kiali-ui
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go
- nodejs
- npm
- tree
- yarn
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kiali/kiali
tag: v${{package.version}}
expected-commit: f7b58f09551e85c4f8a54a5ca26f2fd8932a7357
- uses: go/bump
with:
deps: |-
golang.org/x/oauth2@v0.27.0
golang.org/x/crypto@v0.35.0
golang.org/x/net@v0.36.0
subpackages:
- name: ${{package.name}}-api
description: Kiali API
dependencies:
runtime:
- ca-certificates
pipeline:
- uses: go/build # Builds to /opt/kiali/kiali
with:
packages: .
prefix: opt
install-dir: kiali
output: kiali
ldflags: |
-X main.version=v${{package.version}} \
-X main.commitHash=$(git rev-parse HEAD) \
-X main.goVersion=$(go version | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
- uses: strip
- name: ${{package.name}}-ui
description: Kiali UI
pipeline:
- working-directory: frontend
runs: |
yarn install --frozen-lockfile
KIALI_ENV=production yarn run build
mkdir -p ${{targets.contextdir}}/opt/kiali
mv build ${{targets.contextdir}}/opt/kiali/console
test:
pipeline:
- name: Verify Kiali API
runs: |
# Check if binary runs
/opt/kiali/kiali --help
- name: Verify Kiali UI
runs: |
# Make sure webroot HTML index file exists
grep '</html>' /opt/kiali/console/index.html
update:
enabled: true
github:
identifier: kiali/kiali
strip-prefix: v