-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathkubernetes-dashboard.yaml
71 lines (61 loc) · 1.89 KB
/
kubernetes-dashboard.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
package:
name: kubernetes-dashboard
version: "7.11.1"
epoch: 1
description: General-purpose web UI for Kubernetes clusters
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- curl
- go
- nodejs
- npm
- perl
- posix-libc-utils
- yarn
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kubernetes/dashboard
tag: kubernetes-dashboard-${{package.version}}
expected-commit: 03b43ad0744bc45fafba0fce3ea8471a3f8b9f04
- 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
modroot: modules/web
- working-directory: modules/web
runs: |
yarn install
PATH=$PATH:$(go env GOPATH)/bin GOPATH=$(go env GOPATH) ARCH=$(go env GOARCH) make build
mkdir -p "${{targets.destdir}}"/usr/share/kubernetes-dashboard
mv .dist/* "${{targets.destdir}}"/usr/share/kubernetes-dashboard/
mv "${{targets.destdir}}"/usr/share/kubernetes-dashboard/dashboard-web "${{targets.destdir}}"/usr/share/kubernetes-dashboard/dashboard
mkdir -p "${{targets.destdir}}"/usr/bin
ln -sf /usr/share/kubernetes-dashboard/dashboard "${{targets.destdir}}"/usr/bin/dashboard
- uses: strip
test:
environment:
contents:
packages:
- curl
pipeline:
- uses: test/kwok/cluster
- name: Verify kubernetes-dashboard installation
runs: |
/usr/share/kubernetes-dashboard/dashboard --insecure-bind-address=0.0.0.0 --bind-address=0.0.0.0 --kubeconfig=/root/.kube/config &
sleep 5
curl http://0.0.0.0:8000 | grep "Kubernetes Dashboard" || exit 1
update:
enabled: true
github:
identifier: kubernetes/dashboard
strip-prefix: kubernetes-dashboard-
tag-filter: kubernetes-dashboard-