linux-pikaos-template/scripts/release.sh

26 lines
1023 B
Bash
Raw Permalink Normal View History

2023-02-22 16:23:11 +01:00
#!/bin/bash
2023-02-22 17:55:06 +01:00
echo "Pika Kernel - Releasing Kernel"
# Sign the packages
dpkg-sig --sign builder ./output/linux-image*.deb
dpkg-sig --sign builder ./output/linux-headers*.deb
echo "Pika Kernel - Package sign complete"
2023-02-22 17:55:06 +01:00
2023-02-24 13:30:29 +01:00
# Pull down existing ppa repo db files etc
2023-02-24 16:22:46 +01:00
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
echo "Pika Kernel - Repo rsync pull complete"
2023-04-10 21:44:55 +02:00
# Remove our existing package from the repo - only for current version so we can update it
2023-04-24 19:53:14 +02:00
reprepro -V --basedir ./output/repo/ removefilter kinetic 'Package (% linux-*-6.3.0-pikaos*)'
echo "Pika Kernel - Repo clean complete"
2023-02-24 13:30:29 +01:00
# Add the new package to the repo
2023-02-22 17:55:06 +01:00
reprepro -V --basedir ./output/repo/ includedeb kinetic ./output/linux-image*.deb
reprepro -V --basedir ./output/repo/ includedeb kinetic ./output/linux-headers*.deb
echo "Pika Kernel - Repo update complete"
2023-02-22 17:55:06 +01:00
2023-02-24 13:30:29 +01:00
# Push the updated ppa repo to the server
2023-02-24 16:22:46 +01:00
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
echo "Pika Kernel - Repo rsync push complete"