linux-pikaos-template/scripts/release.sh

26 lines
981 B
Bash
Raw 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
#dpkg-sig --sign builder ./output/linux-tools*.deb
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
2023-02-24 13:30:29 +01:00
# Copy over our gpg key in case it has been updated
cp ./output/key.gpg ./output/repo/key.gpg
2023-02-24 13:30:29 +01:00
# Remove our existing package from the repo
2023-02-24 14:10:16 +01:00
reprepro -V --basedir ./output/repo/ removefilter kinetic 'Package (% linux-*-pikaos*)'
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
#reprepro -V --basedir ./output/repo/ includedeb kinetic ./output/linux-tools*.deb
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/