-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-sidecar.yaml
48 lines (41 loc) · 1.23 KB
/
k8s-sidecar.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
package:
name: k8s-sidecar
version: 1.26.1
epoch: 0
description: "container intended to run inside a kubernetes cluster to collect config maps with a specified label and store the included files in a local folder"
copyright:
- license: MIT
dependencies:
runtime:
- python3
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3-pip
- py3-setuptools
- python3
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kiwigrid/k8s-sidecar
tag: ${{package.version}}
expected-commit: fd64485acb5800c30f8b3530412bc187e7100a79
- runs: |
mkdir -p ${{targets.destdir}}/usr/share/app
cd src
# Mitigate CVE-2022-40897 / GHSA-r9hx-vwmv-q579
pip install --upgrade setuptools
pip3 install --no-cache-dir -r requirements.txt --prefix=/usr --root="${{targets.destdir}}"
cd ..
mv src/* ${{targets.destdir}}/usr/share/app
find ${{targets.destdir}} \( -type d -a -name test -o -name tests \) -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' \+
- uses: strip
update:
enabled: true
github:
identifier: kiwigrid/k8s-sidecar
use-tag: true