Skip to content

Commit

Permalink
[CI] Switch Rocky8 RPM builds to Alma8
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio committed Jul 11, 2023
1 parent 790db26 commit b49d439
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,31 +294,31 @@ release:cs8-x86_64:
except:
- branches

release:rocky8-x86_64:
release:alma8-x86_64:
stage: build:rpm
image: rockylinux:8
image: almalinux:8
script:
- dnf install -y epel-release
- dnf install --nogpg -y gcc-c++ rpm-build tar dnf-plugins-core git python-macros
- dnf config-manager --set-enabled powertools
- dnf install -y cppunit-devel gtest-devel
- dnf -y update libarchive
- mkdir rocky-8-x86_64
- mkdir alma-8-x86_64
- ./gen-tarball.sh $CI_COMMIT_TAG
- mv xrootd-${CI_COMMIT_TAG#"v"}.tar.gz cs-8-x86_64
- mv xrootd-${CI_COMMIT_TAG#"v"}.tar.gz alma-8-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 rocky-8-x86_64
- cp packaging/*src.rpm rocky-8-x86_64
- cp packaging/RPMS/*.rpm alma-8-x86_64
- cp packaging/*src.rpm alma-8-x86_64
artifacts:
expire_in: 1 day
paths:
- rocky-8-x86_64/
- alma-8-x86_64/
tags:
- docker_node
only:
Expand Down

0 comments on commit b49d439

Please sign in to comment.