upload pkgs in build-new-kernel.sh

This commit is contained in:
Christian Zimmermann 2021-07-25 14:09:22 +02:00
parent b36bd374da
commit 0be420ceb7

View file

@ -2,6 +2,7 @@
newver=${1}
nbuild=${2}
token=${3}
newverx=${newver}.${nbuild}
oldver=$(grep "pkgver" kernel-pkgs/PKGBUILD | head -n1)
oldver=${oldver##*=}
@ -30,6 +31,7 @@ ln -s linux-${githash}.config kernel/config-${newverx}
cd kernel-pkgs
makepkg
curl --header "PRIVATE-TOKEN: ${token}" --upload-file linux-armv7-${newverx}-1-armv7h.pkg.tar.xz "https://git.f3l.de/api/v4/projects/149/packages/generic/linux-banana-r2/${newverx}/linux-armv7-${newverx}-1-armv7h.pkg.tar.xz"
curl --header "PRIVATE-TOKEN: ${token}" --upload-file linux-armv7-headers-${newverx}-1-armv7h.pkg.tar.xz "https://git.f3l.de/api/v4/projects/149/packages/generic/linux-banana-r2/${newverx}/linux-armv7-headers-${newverx}-1-armv7h.pkg.tar.xz"
cd -