This commit is contained in:
parent
38fe3a49c1
commit
7ed679734f
1 changed files with 10 additions and 6 deletions
|
@ -23,9 +23,11 @@ pipeline:
|
|||
group: package
|
||||
commands:
|
||||
- python3 setup.py egg_info bdist_wheel
|
||||
- mkdir -p publish
|
||||
- mkdir -p "publish/prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}"
|
||||
- mv dist/*whl publish
|
||||
- sha256sum publish/*.whl >> publish/SHA256SUMS
|
||||
- cd "publish/prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}"
|
||||
- sha256sum *.whl >> publish/SHA256SUMS
|
||||
- cp *.whl ..
|
||||
|
||||
build_debian:
|
||||
image: python:3.11-bookworm
|
||||
|
@ -59,10 +61,12 @@ pipeline:
|
|||
- sed -re "s/__VERSION__/$${EXPORTER_VERSION}-1/g" -i prometheus-tlsrpt-exporter/DEBIAN/control
|
||||
- dpkg-deb --build prometheus-tlsrpt-exporter
|
||||
- cd ../..
|
||||
- mkdir -p publish
|
||||
- mv package/debian/prometheus-tlsrpt-exporter.deb "publish/prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb"
|
||||
- sudo -u nobody lintian "publish/prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" || true
|
||||
- sha256sum "publish/prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" >> publish/SHA256SUMS
|
||||
- mkdir -p "publish/prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}"
|
||||
- mv package/debian/prometheus-tlsrpt-exporter.deb "publish/prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}/prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb"
|
||||
- cd "publish/prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}"
|
||||
- sudo -u nobody lintian "prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" || true
|
||||
- sha256sum "prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" >> publish/SHA256SUMS
|
||||
- cp "prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" ..
|
||||
|
||||
upload:
|
||||
image: woodpeckerci/plugin-s3
|
||||
|
|
Loading…
Reference in a new issue