Skip to content

Commit

Permalink
Refactor script locations
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Mar 3, 2023
1 parent 30b05fe commit 910f626
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
mkdir -p ~/rpmbuild
echo "$RPM_SIGNING_KEY" > ./rpm_signing_key
docker run -t -v "$PWD":/repo fedora:37 /bin/bash -c "/repo/build.sh"
docker run -t -v "$PWD":/repo fedora:37 /bin/bash -c "/repo/build-packages.sh"
env:
RPM_SIGNING_KEY: ${{ secrets.RPM_SIGNING_KEY }}

Expand Down
6 changes: 3 additions & 3 deletions build.sh → build-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ echo -e "%_signature gpg\n%_gpg_name T2Linux Fedora" > ~/.rpmmacros

echo "=====BUILDING====="
rpmdev-setuptree
/repo/build/python-blivet.sh
/repo/build/t2linux-fedora.sh
/repo/build/kernel.sh
/repo/scripts/python-blivet.sh
/repo/scripts/t2linux-fedora.sh
/repo/scripts/kernel.sh
rpm --addsign /root/rpmbuild/RPMS/x86_64/*.rpm

# Copy artifacts to shared volume
Expand Down
8 changes: 0 additions & 8 deletions build/t2linux-fedora.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion build/python-blivet.sh → scripts/python-blivet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ cd /root/rpmbuild/SPECS

echo "=====BUILDING====="
cd /root/rpmbuild/SPECS
/repo/build-spec.sh /repo python-blivet python-blivet-3.5.0-1.fc37
/repo/scripts/build-rpm-from-repo.sh /repo python-blivet python-blivet-3.5.0-1.fc37
8 changes: 8 additions & 0 deletions scripts/t2linux-fedora.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

cd /root/rpmbuild/SPECS

echo "=====BUILDING====="
cd /root/rpmbuild/SPECS
/repo/scripts/build-rpm-from-repo.sh /repo t2linux-config
/repo/scripts/build-rpm-from-repo.sh /repo t2linux-repo

0 comments on commit 910f626

Please sign in to comment.