⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
src
/
netdata
/
.github
/
scripts
/
View File Name :
gen-matrix-build.py
#!/usr/bin/env python3 import json from ruamel.yaml import YAML yaml = YAML(typ='safe') entries = [] with open('.github/data/distros.yml') as f: data = yaml.load(f) for i, v in enumerate(data['include']): if v['test'].get('skip-local-build', False): continue e = { 'artifact_key': v['distro'] + str(v['version']).replace('.', ''), 'version': v['version'], } if 'base_image' in v: e['distro'] = v['base_image'] else: e['distro'] = ':'.join([v['distro'], str(v['version'])]) if 'env_prep' in v: e['env_prep'] = v['env_prep'] if 'jsonc_removal' in v: e['jsonc_removal'] = v['jsonc_removal'] entries.append(e) entries.sort(key=lambda k: k['distro']) matrix = json.dumps({'include': entries}, sort_keys=True) print(matrix)