Skip to content

Commit

Permalink
Add ziping patches and pushing them as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeeq committed Dec 3, 2019
1 parent 4204ad1 commit 8fad868
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cat /proc/cpuinfo | grep 'model name' | uniq
# git clone --depth 1 --single-branch --branch v5.1.19 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

### Dependencies
dnf install -y fedpkg fedora-packager rpmdevtools ncurses-devel pesign git libkcapi libkcapi-devel libkcapi-static libkcapi-tools
dnf install -y fedpkg fedora-packager rpmdevtools ncurses-devel pesign git libkcapi libkcapi-devel libkcapi-static libkcapi-tools zip

### Clone Fedora Kernel git repo
git clone --single-branch --branch $FEDORA_KERNEL_BRANCH_NAME https://src.fedoraproject.org/rpms/kernel.git
Expand Down Expand Up @@ -60,4 +60,9 @@ rpmbuild_exitcode=$?
find ~/rpmbuild/ | grep '\.rpm'
cp -rfv ~/rpmbuild/RPMS/x86_64/*.rpm /tmp/artifacts/

### Add patches to artifacts
cd ..
zip -r patches.zip patches/
cp -rfv patches.zip

exit $rpmbuild_exitcode

0 comments on commit 8fad868

Please sign in to comment.