Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .ci/almalinux10.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM almalinux:10-kitten

RUN dnf install -y \
'dnf-command(config-manager)' \
epel-release \
git \
jq \
rpm-build
RUN dnf config-manager --set-enabled -y crb

# 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
46 changes: 46 additions & 0 deletions .ci/pkg-rpm-almalinux10.jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
pipeline {
agent {
label 'clone3'
}
stages {
stage('makedist') {
agent {
dockerfile {
filename '.ci/almalinux10.dockerfile'
reuseNode true
}
}
steps {
sh '''
./scripts/makedist.sh
mkdir -p rpmbuild/SOURCES
mv gramine*.tar.* rpmbuild/SOURCES
'''
}
}
stage('build') {
agent {
dockerfile {
filename '.ci/almalinux10.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,
'''
}
}
}