forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkyverno-policy-reporter.yaml
64 lines (56 loc) · 1.53 KB
/
kyverno-policy-reporter.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
package:
name: kyverno-policy-reporter
version: 2.24.2
epoch: 0
description: Monitoring and Observability Tool for the PolicyReport CRD with an optional UI.
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- go
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kyverno/policy-reporter
tag: policy-reporter-${{package.version}}
expected-commit: de07f8e4d61f65c42cd999db8141cff5fda65d48
- uses: go/build
with:
packages: .
output: policyreporter
ldflags: -w -linkmode external -extldflags "-static"
tags: sqlite_unlock_notify
- runs: |
mkdir -p ${{targets.destdir}}/app/templates
cp -R ./templates ${{targets.destdir}}/app/templates
- uses: strip
subpackages:
- name: kyverno-policy-reporter-compat
description: compatibility symlinks package for policyreporter Dockerfile
pipeline:
- runs: |
# Symlink the binary from usr/bin to /app/
mkdir -p ${{targets.subpkgdir}}/app
ln -sf /usr/bin/policyreporter ${{targets.subpkgdir}}/app/policyreporter
update:
enabled: true
ignore-regex-patterns:
- "-RC*"
- "dev"
- "-chart-" # Avoid Helm chart tags
- "preview"
github:
identifier: kyverno/policy-reporter
use-tag: true
strip-prefix: policy-reporter-
tag-filter: policy-reporter
test:
pipeline:
# AUTOGENERATED
- runs: |
policyreporter --help
policyreporter version