diff --git a/.woodpecker.yml b/.woodpecker.yml index 5aad6a4..d591826 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -23,6 +23,10 @@ pipeline: group: package when: event: tag + secrets: + - GITEA_API_REPOSITORY_PYPI + - GITEA_API_USERNAME + - GITEA_API_PASSWORD commands: - pip3 install -e .[test] - python3 setup.py egg_info bdist_wheel @@ -43,6 +47,8 @@ pipeline: group: package when: event: tag + secrets: + - GITEA_API_REPOSITORY_DEB environment: - PACKAGE_AUTHOR=s3lph@kabelsalat.ch commands: @@ -71,9 +77,11 @@ pipeline: - chmod +x prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/DEBIAN/postinst prometheus-tlsrpt-exporter/DEBIAN/prerm - sed -re "s/__VERSION__/$${EXPORTER_VERSION}-1/g" -i prometheus-tlsrpt-exporter/DEBIAN/control - dpkg-deb --build prometheus-tlsrpt-exporter + - mv "prometheus-tlsrpt-exporter.deb" "prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" - sudo -u nobody lintian "prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" || true - >- curl + -u "$${GITEA_API_USERNAME}:$${GITEA_API_PASSWORD}" -XPUT --data-binary "@prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" $${GITEA_API_REPOSITORY_DEB}