-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53b1f7f
commit fadd1bc
Showing
6 changed files
with
37 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#!/bin/bash | ||
|
||
echo "=====INSTALLING DEPENDENCIES=====" | ||
dnf install -y --quiet koji fedora-packager git curl pesign rpmdevtools rpm-sign rpm-build | ||
dnf install -y --quiet koji git curl pesign rpmdevtools rpm-sign rpm-build mock | ||
|
||
echo "=====IMPORTING KEYS=====" | ||
gpg --import /repo/rpm_signing_key | ||
rm -rfv /repo/rpm_signing_key | ||
echo -e "%_signature gpg\n%_gpg_name T2Linux Fedora" > ~/.rpmmacros | ||
|
||
echo "=====BUILDING=====" | ||
rpmdev-setuptree | ||
mkdir -p /output | ||
/repo/scripts/t2linux-fedora.sh | ||
/repo/scripts/kernel.sh | ||
rpm --addsign /root/rpmbuild/RPMS/x86_64/*.rpm | ||
rpm --addsign /output/*.rpm | ||
|
||
# Copy artifacts to shared volume | ||
cd "/repo" | ||
mkdir -p ./output | ||
mkdir -p ./output/RPMS | ||
cp -rfv /root/rpmbuild/RPMS/* ./output/RPMS/ | ||
cp -rfv /output/* ./output/RPMS/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dnf install -y --quiet createrepo | ||
mkdir -p /tmp/repo | ||
cd /tmp/repo | ||
cp /repo/output/RPMS/*/*.rpm . | ||
mkdir -p /rpm-repo | ||
cd /rpm-repo | ||
cp /output/*.rpm . | ||
createrepo . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters