forked from gramineproject/gramine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Wojtek Porczyk <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM almalinux:8 | ||
|
||
RUN dnf install -y \ | ||
'dnf-command(config-manager)' \ | ||
epel-release \ | ||
git \ | ||
jq \ | ||
rpm-build | ||
RUN dnf config-manager --set-enabled -y powertools | ||
|
||
# NOTE: COPY invalidates docker cache when source file changes, | ||
# so `dnf builddep` will rerun if dependencies change, despite no change | ||
# in dockerfile. | ||
COPY gramine.spec /gramine.spec | ||
RUN dnf builddep -y /gramine.spec |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
pipeline { | ||
agent any | ||
stages { | ||
stage('makedist') { | ||
agent { | ||
dockerfile { | ||
filename '.ci/almalinux8.dockerfile' | ||
reuseNode true | ||
} | ||
} | ||
steps { | ||
sh ''' | ||
./scripts/makedist.sh | ||
mkdir -p rpmbuild/SOURCES | ||
mv gramine*.tar.* rpmbuild/SOURCES | ||
''' | ||
} | ||
} | ||
stage('build') { | ||
agent { | ||
dockerfile { | ||
filename '.ci/almalinux8.dockerfile' | ||
args '--network=none' | ||
reuseNode true | ||
} | ||
} | ||
steps { | ||
sh ''' | ||
rpmbuild \ | ||
--define "_topdir $PWD/rpmbuild" \ | ||
-ba gramine.spec | ||
''' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
archiveArtifacts ''' | ||
rpmbuild/SRPMS/gramine*.src.rpm, | ||
rpmbuild/RPMS/*/gramine*.rpm, | ||
''' | ||
} | ||
} | ||
} |