From 7ed679734f1a9db01170908e04a1ecbcd521ff61 Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 24 Jul 2023 23:26:32 +0200 Subject: [PATCH] fix: ci --- .woodpecker.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 10e9b52..2c53d1a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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