From bef1b64af727c598e54d67eb04985b408aef5e4d Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 24 Jul 2023 01:04:54 +0200 Subject: [PATCH] fix: ci --- .gitignore | 2 -- .woodpecker.yml | 6 +++--- .../systemd/system/prometheus-tlsrpt-exporter.service | 11 +++++++++++ 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 package/debian/prometheus-tlsrpt-exporter/lib/systemd/system/prometheus-tlsrpt-exporter.service diff --git a/.gitignore b/.gitignore index 68bc17f..2217b83 100644 --- a/.gitignore +++ b/.gitignore @@ -14,11 +14,9 @@ dist/ downloads/ eggs/ .eggs/ -lib/ lib64/ parts/ sdist/ -var/ wheels/ share/python-wheels/ *.egg-info/ diff --git a/.woodpecker.yml b/.woodpecker.yml index 6b99d09..10e9b52 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -38,9 +38,9 @@ pipeline: - echo -n > package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog - | for version in "$(cat CHANGELOG.md | grep '" | 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 -e "\n -- ${PACKAGE_AUTHOR} $(date -R)\n" >> package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog + echo -e "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 -e "\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 diff --git a/package/debian/prometheus-tlsrpt-exporter/lib/systemd/system/prometheus-tlsrpt-exporter.service b/package/debian/prometheus-tlsrpt-exporter/lib/systemd/system/prometheus-tlsrpt-exporter.service new file mode 100644 index 0000000..fa6232a --- /dev/null +++ b/package/debian/prometheus-tlsrpt-exporter/lib/systemd/system/prometheus-tlsrpt-exporter.service @@ -0,0 +1,11 @@ +[Unit] +Description=Prometheus exporter for TLSRPT reports +After=networking.target + +[Service] +EnvironmentFile=-/etc/default/prometheus-tlsrpt-exporter +ExecStart=/usr/bin/prometheus-tlsrpt-exporter $ARGS +User=prometheus-tlsrpt-exporter + +[Install] +WantedBy=multi-user.target