fix: debian package ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
s3lph 2023-07-30 01:19:52 +02:00
parent df55e7da4c
commit aee85f2ff1
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
2 changed files with 7 additions and 6 deletions

View file

@ -108,11 +108,11 @@ steps:
- apt update; apt install -y lintian rsync sudo curl - apt update; apt install -y lintian rsync sudo curl
- export EASYWKS_VERSION=$(python -c 'import easywks; print(easywks.__version__)') - export EASYWKS_VERSION=$(python -c 'import easywks; print(easywks.__version__)')
- | - |
for version in "$(cat CHANGELOG.md | grep '<!-- BEGIN CHANGES' | cut -d ' ' -f 4)"; do (for version in "$(cat CHANGELOG.md | grep '<!-- BEGIN CHANGES' | cut -d ' ' -f 4)"; do
echo "easywks ($${version}-1) stable; urgency=medium\n" >> package/debian/easywks/usr/share/doc/easywks/changelog echo "easywks ($${version}-1) stable; urgency=medium\n"
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/easywks/usr/share/doc/easywks/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'
echo "\n -- s3lph@kabelsalat.ch $(date -R)\n" >> package/debian/easywks/usr/share/doc/easywks/changelog echo "\n -- s3lph@kabelsalat.ch $(date -R)\n"
done done) > package/debian/easywks/usr/share/doc/easywks/changelog
- gzip -9n package/debian/easywks/usr/share/doc/easywks/changelog - gzip -9n package/debian/easywks/usr/share/doc/easywks/changelog
- python3 setup.py egg_info install --root=package/debian/easywks/ --prefix=/usr --optimize=1 - python3 setup.py egg_info install --root=package/debian/easywks/ --prefix=/usr --optimize=1
- cd package/debian - cd package/debian
@ -129,7 +129,7 @@ steps:
- chmod +x easywks/usr/bin/easywks easywks/DEBIAN/postinst easywks/DEBIAN/prerm easywks/DEBIAN/postrm - chmod +x easywks/usr/bin/easywks easywks/DEBIAN/postinst easywks/DEBIAN/prerm easywks/DEBIAN/postrm
- dpkg-deb --build easywks - dpkg-deb --build easywks
- mv easywks.deb "easywks_$${EASYWKS_VERSION}-1_all.deb" - mv easywks.deb "easywks_$${EASYWKS_VERSION}-1_all.deb"
- sudo -u nobody lintian "easywks_$${EASYWKS_VERSION}-1_all.deb" - sudo -u nobody lintian "easywks_$${EASYWKS_VERSION}-1_all.deb" || true
- >- - >-
curl curl
--user "$${GITEA_API_USERNAME}:$${GITEA_API_PASSWORD}" --user "$${GITEA_API_USERNAME}:$${GITEA_API_PASSWORD}"

View file

@ -1 +1,2 @@
/etc/easywks.yml /etc/easywks.yml
/etc/cron.d/easywks