Skip to content

Commit

Permalink
[CI] Add release pipeline for Centos 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jan 22, 2020
1 parent 754742a commit b4c3ccf
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .gitlab-ci.yml
Expand Up @@ -290,6 +290,38 @@ build:macosx:
- schedules
allow_failure: true

release:centos8-x86_64:
stage: build:rpm
image: centos:8
script:
- dnf install -y epel-release
- dnf install --nogpg -y gcc-c++ rpm-build which tar dnf-plugins-core git python-macros
- dnf config-manager --set-enabled PowerTools
- dnf install -y cppunit-devel
- mkdir centos-8-x86_64
- git archive --prefix=xrootd-${CI_COMMIT_TAG#"v"}/ --format=tar tags/$CI_COMMIT_TAG | gzip -9fn > xrootd-${CI_COMMIT_TAG#"v"}.tar.gz
- mv xrootd-${CI_COMMIT_TAG#"v"}.tar.gz centos-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" -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 "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" -D "dist .el8" *.src.rpm
- cd ..
- cp packaging/RPMS/*.rpm centos-8-x86_64
- cp packaging/*src.rpm centos-8-x86_64
artifacts:
expire_in: 1 day
paths:
- centos-8-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 @@ -651,7 +683,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 cc-7-x86_64 slc-6-x86_64; do
- "for platform in centos-8-x86_64 cc-7-x86_64 slc-6-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 b4c3ccf

Please sign in to comment.