-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathkubeflow-centraldashboard.yaml
59 lines (52 loc) · 2.02 KB
/
kubeflow-centraldashboard.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
package:
name: kubeflow-centraldashboard
version: 1.8.0
epoch: 1
description: Landing page and central dashboard for Kubeflow deployments
copyright:
- license: MIT
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- git
- jq
- nodejs-18
- openssl
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kubeflow/kubeflow
tag: v${{package.version}}
expected-commit: a1ea0e92559d13e05c4427094c7a26de1002fcc0
- working-directory: components/centraldashboard
runs: |
# Create "overrides" section of package.json
jq '.overrides |= (if . then . else {} end)' package.json > temp.json && mv temp.json package.json
for override in '"ajv"="^6.12.3"' '"node-fetch"="^2.6.7"' '"node-forge"="^1.3.0"' '"axios"="^1.6.0"' '"qs"="^6.7.3"' '"underscore"="^1.12.1"' '"minimatch"="^3.0.5"' '"path-parse"="^1.0.7"' '"word-wrap"="^1.2.4"' '"protobufjs"="^6.11.4"' '"request"="^2.88.0"' '"monorepo-symlink-test"="^0.0.0"' '"tough-cookie"="^4.1.3"' '"ws"="^6.2.2"' ; do
jq ".overrides.${override}" package.json > temp.json && mv temp.json package.json
done
- working-directory: components/centraldashboard
runs: |
export NODE_OPTIONS=--openssl-legacy-provider
# Build the frontend and copy the common package into it
npm rebuild && \
npm install --force --legacy-peer-deps && \
npm run build --force --legacy-peer-deps && \
npm prune --production --force --legacy-peer-deps
# Now move it all into place
mkdir -p "${{targets.destdir}}/app"
mv * "${{targets.destdir}}/app"
# https://github.com/browserify/resolve/issues/288
sed -i 's/monorepo-symlink-test/false-positive/g' ${{targets.destdir}}/app/node_modules/resolve/test/resolver/multirepo/package.json
update:
enabled: true
github:
identifier: kubeflow/kubeflow
use-tag: true
# There were some malformed early tags
tag-filter: v1
strip-prefix: v