feat: upload artifacts to minio
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
s3lph 2023-07-24 00:23:38 +02:00
parent ac0abe764c
commit 510aa121f0
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -23,8 +23,9 @@ pipeline:
group: package group: package
commands: commands:
- python3 setup.py egg_info bdist_wheel - python3 setup.py egg_info bdist_wheel
- cd dist - mkdir -p publish
- sha256sum *.whl > SHA256SUMS - mv dist/*whl publish
- sha256sum publish/*.whl >> publish/SHA256SUMS
build_debian: build_debian:
image: python:3.11-bookworm image: python:3.11-bookworm
@ -57,6 +58,25 @@ pipeline:
- chmod +x prometheus-tlsrpt-exporter/usr/bin/prometheus-tlsrpt-exporter prometheus-tlsrpt-exporter/DEBIAN/postinst prometheus-tlsrpt-exporter/DEBIAN/prerm - 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 - sed -re "s/__VERSION__/$${EXPORTER_VERSION}-1/g" -i prometheus-tlsrpt-exporter/DEBIAN/control
- dpkg-deb --build prometheus-tlsrpt-exporter - dpkg-deb --build prometheus-tlsrpt-exporter
- mv prometheus-tlsrpt-exporter.deb "prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" - cd ../..
- sudo -u nobody lintian "prometheus-tlsrpt-exporter_$${EXPORTER_VERSION}-1_all.deb" || true - mkdir -p publish
- sha256sum *.deb > SHA256SUMS - 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
upload:
image: woodpeckerci/plugin-s3
group: upload
secrets:
- MINIO_ACCESS_KEY
- MINIO_SECRET_KEY
- MINIO_ENDPOINT
- MINIO_BUCKET
settings:
endpoint: ${MINIO_ENDPOINT}
bucket: ${MINIO_BUCKET}
access_key: ${MINIO_ACCESS_KEY}
secret_key: ${MINIO_SECRET_KEY}
source: publish/*
target: /artifacts
path_style: true