Skip to content

Commit

Permalink
stub out workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Amndeep Singh Mann <[email protected]>
  • Loading branch information
Amndeep7 committed Jun 11, 2024
1 parent 0da43bf commit 09a346e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-rpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# TODO

# use oclif to build the tarball properly
# ./node_modules/.bin/oclif pack tarballs -t linux-x64 --no-xz

# need to insert the spec file into the tarball so that rpmbuild can use the generated tarball, this also resolves the commit sha in filepath issue
# still need to figure out where we're gonna keep the spec file. tempted to just heredoc it in the workflow. regardless it needs to be under the saf directory once it's in the tarball.
# gzip -dc dist/saf-v1.4.7-781ae09-linux-x64.tar.gz > dist/saf-v1.4.7-linux-x64.tar
# tar -rf dist/saf-v1.4.7-linux-x64.tar --transform 's|^SPECS|saf|' SPECS/saf.spec
# gzip dist/saf-v1.4.7-linux-x64.tar

# spin up a rhel container and do the rpmbuild in there - need to templatize the define for the version number
# need to get the rpm outta there and made into an artifact - but now it's a proper size (66mb! instead of the humongous sizes we were seeing before)
# rpmbuild -ta dist/saf-v1.4.7-linux-x64.tar.gz -D "_rpmdir $(pwd)" -D "name saf" -D "version 1.4.7" -D "release 1"
# yum install ./noarch/saf-1.4.7-1.noarch.rpm

0 comments on commit 09a346e

Please sign in to comment.