Skip to content

Commit

Permalink
ELevate CI AlmaLinux#3
Browse files Browse the repository at this point in the history
  • Loading branch information
yuravk committed Oct 18, 2024
1 parent 79d6f83 commit f772566
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/elevate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,17 +373,17 @@ jobs:
# Prepare the package sources
cd /vagrant
read -r name version source<<< $(rpmspec --define 'dist_name ${{ matrix.distro }}' -P leapp-data.spec \
read -r name version source <<< $(rpmspec --define 'dist_name ${{ matrix.distro }}' -P leapp-data.spec \
| awk '/^Name:/ {name=$2} /^Version:/ {version=$2} /^Source/ {source=$2} END {print name, version, source}')
mkdir -p ${rpmbuild_topdir}/SOURCES/${name}-${version}
/bin/cp -a ./* ${rpmbuild_topdir}/SOURCES/${name}-${version}/
/bin/cp leapp-data.spec ${rpmbuild_topdir}/SPECS/
rm -f ${rpmbuild_topdir}/SOURCES/${name}-${version}/*.sh
cd ${rpmbuild_topdir}/SOURCES/${name}-${version}
cd ${rpmbuild_topdir}/SOURCES/
tar zcf ${source} ${name}-${version}
rpmbuild -bb --without check --define 'dist_name ${{ matrix.distro }}' ${rpmbuild_topdir}/SPEC/leapp-data.spec
yum install -y ${rpmbuild_topdir}/RPMS/noarch/${name}-{version}*.noarch.rpm
rpmbuild -bb --without check --define 'dist_name ${{ matrix.distro }}' ${rpmbuild_topdir}/SPECS/leapp-data.spec
yum install -y ${rpmbuild_topdir}/RPMS/noarch/${name}-${version}*.noarch.rpm
EOF
chmod +x leapp-data-rpm.sh
Expand Down

0 comments on commit f772566

Please sign in to comment.