Skip to content

Commit

Permalink
[CI] Add RPM release builds for Alma9
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio committed Jul 11, 2023
1 parent b49d439 commit 1a43b4b
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,37 @@ release:alma8-x86_64:
except:
- branches

release:alma9-x86_64:
stage: build:rpm
image: almalinux:9
script:
- dnf install -y epel-release
- dnf install --nogpg -y rpm-build tar dnf-plugins-core git python-macros
- dnf config-manager --set-enabled crb
- dnf -y update libarchive
- mkdir alma-9-x86_64
- ./gen-tarball.sh $CI_COMMIT_TAG
- mv xrootd-${CI_COMMIT_TAG#"v"}.tar.gz alma-9-x86_64
- cd packaging/
- git checkout tags/${CI_COMMIT_TAG}
- ./makesrpm.sh --define "_with_python3 1" --define "_with_tests 1" --define "_without_xrootd_user 1" --define "_with_xrdclhttp 1" --define "_with_scitokens 1" --define "_with_isal 1" -D "dist .el8"
- dnf builddep --nogpgcheck -y *.src.rpm
- mkdir RPMS
- rpmbuild --rebuild --define "_rpmdir RPMS/" --define "_with_python3 1" --define "_with_tests 1" --define "_without_xrootd_user 1" --define "_with_xrdclhttp 1" --define "_with_scitokens 1" --define "_with_isal 1" --define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" -D "dist .el8" *.src.rpm
- cd ..
- cp packaging/RPMS/*.rpm alma-9-x86_64
- cp packaging/*src.rpm alma-9-x86_64
artifacts:
expire_in: 1 day
paths:
- alma-9-x86_64/
tags:
- docker_node
only:
- web
except:
- branches

release:cc7-x86_64:
stage: build:rpm
image: gitlab-registry.cern.ch/linuxsupport/cc7-base
Expand Down Expand Up @@ -645,7 +676,7 @@ publish:rhel:release:
- yum install --nogpg -y sssd-client sudo createrepo
- prefix=/eos/project/s/storage-ci/www/xrootd
- tarball=cc-7-x86_64/xrootd-*.tar.gz
- "for platform in rocky-8-x86_64 cs-8-x86_64 cc-7-x86_64; do
- "for platform in alma-8-x86_64 alma-9-x86_64 cs-8-x86_64 cc-7-x86_64; do
path=$prefix/release/$platform/$CI_COMMIT_TAG/;
sudo -u stci -H mkdir -p $path/{source,tarball};
sudo -u stci -H cp $platform/*.rpm $path;
Expand Down

0 comments on commit 1a43b4b

Please sign in to comment.