aboutsummaryrefslogtreecommitdiffstats
path: root/gitlab-ci-rpms-tito.yml
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-05-06 13:01:31 +0200
committerGerd Hoffmann <kraxel@redhat.com>2021-05-06 13:01:31 +0200
commitc1b62d8953bb87b9e67c8b001366e44b8124575f (patch)
treeb213a18d1625958a13a1612a60c28c3393e1f834 /gitlab-ci-rpms-tito.yml
parent895c84da6b1c0a89c61eda16f27cc2c3e9985585 (diff)
downloadrpm-package-builder-c1b62d8953bb87b9e67c8b001366e44b8124575f.tar.gz
drop devel
Diffstat (limited to 'gitlab-ci-rpms-tito.yml')
-rw-r--r--gitlab-ci-rpms-tito.yml54
1 files changed, 33 insertions, 21 deletions
diff --git a/gitlab-ci-rpms-tito.yml b/gitlab-ci-rpms-tito.yml
index 17524a5..e9a6a49 100644
--- a/gitlab-ci-rpms-tito.yml
+++ b/gitlab-ci-rpms-tito.yml
@@ -26,54 +26,66 @@ tito_fedora_x86_64:
paths:
- rpms-fedora-x86_64/
-tito_centos8_x86_64:
+tito_el7_x86_64:
stage: rpms
- image: registry.gitlab.com/kraxel/rpm-package-builder:centos8
+ image: registry.gitlab.com/kraxel/rpm-package-builder:el7
before_script:
- - dnf builddep -y *.spec
+ - yum-builddep -y *.spec
script:
- - tito build --test --rpm --output rpms-centos8-x86_64
- - createrepo rpms-centos8-x86_64
+ - tito build --test --rpm --output rpms-el7-x86_64
+ - createrepo rpms-el7-x86_64
artifacts:
paths:
- - rpms-centos8-x86_64/
+ - rpms-el7-x86_64/
-tito_centos8s_x86_64:
+tito_el8_x86_64:
stage: rpms
- image: registry.gitlab.com/kraxel/rpm-package-builder:centos8s
+ image: registry.gitlab.com/kraxel/rpm-package-builder:el8
before_script:
- dnf builddep -y *.spec
script:
- - tito build --test --rpm --output rpms-centos8s-x86_64
- - createrepo rpms-centos8s-x86_64
+ - tito build --test --rpm --output rpms-el8-x86_64
+ - createrepo rpms-el8-x86_64
artifacts:
paths:
- - rpms-centos8s-x86_64/
+ - rpms-el8-x86_64/
-tito_centos7_x86_64:
+tito_stream8_x86_64:
stage: rpms
- image: registry.gitlab.com/kraxel/rpm-package-builder:centos7
+ image: registry.gitlab.com/kraxel/rpm-package-builder:stream8
before_script:
- - yum-builddep -y *.spec
+ - dnf builddep -y *.spec
script:
- - tito build --test --rpm --output rpms-centos7-x86_64
- - createrepo rpms-centos7-x86_64
+ - tito build --test --rpm --output rpms-stream8-x86_64
+ - createrepo rpms-stream8-x86_64
artifacts:
paths:
- - rpms-centos7-x86_64/
+ - rpms-stream8-x86_64/
pages:
stage: repo
image: registry.gitlab.com/kraxel/rpm-package-builder:fedora
script:
- - mkdir public
- >
for dir in rpms-*;
do
- distro="${dir#rpms-}";
+ item="${dir#rpms-}";
+ arch="${item#*-}";
+ distro="${item%%-*}";
+ test -d "${dir}/${arch}" && mkdir -p "public/${distro}/${arch}";
+ test -d "${dir}/${arch}" && mv -v ${dir}/${arch}/*.rpm "public/${distro}/${arch}";
+ test -d "${dir}/noarch" && mkdir -p "public/${distro}/noarch";
+ test -d "${dir}/noarch" && mv -v ${dir}/noarch/*.rpm "public/${distro}/noarch";
+ mkdir -p "public/${distro}/src";
+ mv -v ${dir}/*.src.rpm "public/${distro}/src";
+ createrepo public/${distro};
+ done
+ - >
+ for dir in public/*;
+ do
+ distro="${dir#public/}";
name="gitlab-${CI_PROJECT_NAME}-${distro}";
repo="public/${name}.repo";
- mv -v $dir public/${distro};
echo "[${name}]" > "$repo";
echo "name=${name}" >> "$repo";
echo "baseurl=${CI_PAGES_URL}/${distro}/" >> "$repo";
@@ -81,7 +93,7 @@ pages:
echo "metadata_expire=10m" >> "$repo";
echo "gpgcheck=0" >> "$repo";
done
- - tree -T "$CI_PROJECT_NAME rpms" --charset utf8 -H . public > index.html
+ - tree -T "$CI_PROJECT_NAME rpms" --dirsfirst --charset utf8 -H . public > index.html
- mv index.html public
artifacts:
paths: