fix: ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
s3lph 2023-07-23 21:02:32 +02:00
parent 5d101c3e5a
commit b4f07503d9
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
2 changed files with 25 additions and 1 deletions

View file

@ -29,9 +29,19 @@ pipeline:
build_debian: build_debian:
image: python:3.11-bookworm image: python:3.11-bookworm
group: package group: package
environment:
- PACKAGE_AUTHOR=s3lph@kabelsalat.ch
commands: commands:
- apt update; apt install -y lintian rsync sudo - apt update; apt install -y lintian rsync sudo
- export EXPORTER_VERSION=$(python3 -c 'import tlsrpt_exporter; print(tlsrpt_exporter.__version__)') - export EXPORTER_VERSION=$(python3 -c 'import tlsrpt_exporter; print(tlsrpt_exporter.__version__)')
- echo -n > package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog
- |
for version in "$(cat CHANGELOG.md | grep '<!-- BEGIN CHANGES' | cut -d ' ' -f 4)"; do
echo "prometheus-tlsrpt-exporter (${version}-1); urgency=medium\n" >> package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog
cat CHANGELOG.md | grep -A 1000 "<"'!'"-- BEGIN CHANGES ${version} -->" | grep -B 1000 "<"'!'"-- END CHANGES ${version} -->" | tail -n +2 | head -n -1 | sed -re 's/^-/ */g' >> package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog
echo "\n -- ${PACKAGE_AUTHOR} $(date -R)\n" >> package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog
done
- gzip -9n package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog
- mkdir -p package/debian/prometheus-tlsrpt-exporter/usr/share/prometheus-tlsrpt-exporter - mkdir -p package/debian/prometheus-tlsrpt-exporter/usr/share/prometheus-tlsrpt-exporter
- cp -r templates/ package/debian/prometheus-tlsrpt-exporter/usr/share/prometheus-tlsrpt-exporter/templates/ - cp -r templates/ package/debian/prometheus-tlsrpt-exporter/usr/share/prometheus-tlsrpt-exporter/templates/
- python3 setup.py egg_info install --root=package/debian/prometheus-tlsrpt-exporter/ --prefix=/usr --optimize=1 - python3 setup.py egg_info install --root=package/debian/prometheus-tlsrpt-exporter/ --prefix=/usr --optimize=1
@ -41,7 +51,7 @@ pipeline:
- rm -rf prometheus-tlsrpt-exporter/usr/lib/python3.11/ - rm -rf prometheus-tlsrpt-exporter/usr/lib/python3.11/
- find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true - find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name __pycache__ -exec rm -r {} \; 2>/dev/null || true
- find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \; - find prometheus-tlsrpt-exporter/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \;
- sed -re 's$#!/usr/local/bin/python3.11$#!/usr/bin/python3$' -i prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter - sed -re 's$#!/usr/local/bin/python3$#!/usr/bin/python3$' -i prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter
- find prometheus-tlsrpt-exporter -type f -exec chmod 0644 {} \; - find prometheus-tlsrpt-exporter -type f -exec chmod 0644 {} \;
- find prometheus-tlsrpt-exporter -type d -exec chmod 755 {} \; - find prometheus-tlsrpt-exporter -type d -exec chmod 755 {} \;
- chmod +x prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/DEBIAN/postinst prometheus-tlsrpt-exporter/DEBIAN/prerm - chmod +x prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/DEBIAN/postinst prometheus-tlsrpt-exporter/DEBIAN/prerm

14
CHANGELOG.md Normal file
View file

@ -0,0 +1,14 @@
# prometheus-tlsrpt-exporter Changelog
<!-- BEGIN RELEASE v0.1 -->
## Version 0.1
Initial version
### Changes
<!-- BEGIN CHANGES 0.1 -->
- Initial version
<!-- END CHANGES 0.1 -->
<!-- END RELEASE v0.1 -->