fix(ci): add secrets to build steps
This commit is contained in:
parent
cb7f8ace16
commit
067fa8bcba
1 changed files with 8 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue