Skip to content

Commit

Permalink
Nightly fix (DNF)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulchen-Panther committed Aug 25, 2024
1 parent 4f2739a commit ba22eb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish_deb_rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
gpg --armor --output hyperion.pub.key --export '[email protected]'
rpm --import hyperion.pub.key
channel=$([ "${{ inputs.nightly }}" = true ] && echo "Nightly" || echo "Stable")
nightly=$([ "${{ inputs.nightly }}" = true ] && echo "nightly." || echo "")
declare -A distArray=([fc]=fedora [el]=rhel)
for file in $RPM_PACKAGES; do
if [ -f "$file" ]; then
Expand All @@ -96,7 +97,7 @@ jobs:
rpm --checksig $rpm/*.rpm
createrepo $rpm/
gpg --yes --detach-sign --armor $rpm/repodata/repomd.xml
sed -r "s/@CHANNEL@/${channel}/g; s/@DIST@/${distArray[${dist_ver:0:2}]}/g; s/@ARCH@/${dist_ver_arch##*.}/g" ${GITHUB_WORKSPACE}/rpmbuild/hyperion.repo.in > rpm/${distArray[${dist_ver:0:2}]}/hyperion.repo
sed -r "s/@CHANNEL@/${channel}/g; s/@DIST@/${distArray[${dist_ver:0:2}]}/g; s/@ARCH@/${dist_ver_arch##*.}/g; s/@NIGHTLY@/${nightly}/g" ${GITHUB_WORKSPACE}/rpmbuild/hyperion.repo.in > rpm/${distArray[${dist_ver:0:2}]}/hyperion.repo
fi
done
cp .github/workflows/redirect.html rpm/index.html
Expand Down
2 changes: 1 addition & 1 deletion rpmbuild/hyperion.repo.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[hyperion]
name=Hyperion - @ARCH@ - @CHANNEL@ Release
baseurl=https://dnf.releases.hyperion-project.org/@DIST@/$releasever/$basearch/
baseurl=https://@NIGHTLY@dnf.releases.hyperion-project.org/@DIST@/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://releases.hyperion-project.org/hyperion.pub.key

0 comments on commit ba22eb0

Please sign in to comment.