-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathkyverno-policy-reporter-ui.yaml
68 lines (60 loc) · 1.57 KB
/
kyverno-policy-reporter-ui.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
package:
name: kyverno-policy-reporter-ui
version: 1.9.2
epoch: 0
description: Policy Reporter UI
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- bash
- build-base
- busybox
- ca-certificates-bundle
- curl
- git
- go
- node-gyp
- nodejs-18
- openssl
- python-3.11
- wolfi-baselayout
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kyverno/policy-reporter-ui
tag: v${{package.version}}
expected-commit: 5b03edd71958dca47dd13bca7de95294a332817c
- runs: |
export NODE_OPTIONS=--openssl-legacy-provider
npm install
npm run generate
mkdir -p ${{targets.destdir}}/app
cp -R ./dist ${{targets.destdir}}/app/dist
- uses: go/build
with:
modroot: server
packages: .
# Mitigate CVE-2023-39325, CVE-2023-44487
output: policyreporter-ui
ldflags: -w
- uses: strip
subpackages:
- name: kyverno-policy-reporter-ui-compat
description: compatibility symlinks package for policyreporter-ui Dockerfile
pipeline:
- runs: |
# Symlink the binary from usr/bin to /app/
mkdir -p ${{targets.subpkgdir}}/app
ln -sf /usr/bin/policyreporter-ui ${{targets.subpkgdir}}/app/policyreporter-ui
update:
enabled: true
# There are tags with alpha and helm charts that break our update block.
ignore-regex-patterns:
- 'alpha'
- 'policy-reporter-ui-chart-'
github:
identifier: kyverno/policy-reporter-ui
use-tag: true
strip-prefix: v