diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-05-06 11:58:17 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-05-06 11:58:17 +0200 |
commit | 15cdf38d7c92bedec0dd590ea8dbb5d4de97f16b (patch) | |
tree | 007882adac69e2fa047ab4743b8e4f4b5e984b7e | |
parent | 930a11c7fa5d70e2753a5a2d41efe6b01a1a2f2d (diff) | |
download | rpm-package-builder-15cdf38d7c92bedec0dd590ea8dbb5d4de97f16b.tar.gz |
tito devel
-rw-r--r-- | gitlab-ci-rpms-tito-devel.yml | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/gitlab-ci-rpms-tito-devel.yml b/gitlab-ci-rpms-tito-devel.yml new file mode 100644 index 0000000..8cf9147 --- /dev/null +++ b/gitlab-ci-rpms-tito-devel.yml @@ -0,0 +1,99 @@ +tito_fedora_aarch64: + stage: rpms + image: registry.gitlab.com/kraxel/rpm-package-builder:fedora + tags: + - aarch64 + rules: + - if: '$BUILD_AARCH64 == "yes"' + before_script: + - dnf builddep -y *.spec + script: + - tito build --test --rpm --output rpms-fedora-aarch64 + - createrepo rpms-fedora-aarch64 + artifacts: + paths: + - rpms-fedora-aarch64/ + +tito_fedora_x86_64: + stage: rpms + image: registry.gitlab.com/kraxel/rpm-package-builder:fedora + before_script: + - dnf builddep -y *.spec + script: + - tito build --test --rpm --output rpms-fedora-x86_64 + - createrepo rpms-fedora-x86_64 + artifacts: + paths: + - rpms-fedora-x86_64/ + +tito_el7_x86_64: + stage: rpms + image: registry.gitlab.com/kraxel/rpm-package-builder:el7 + before_script: + - yum-builddep -y *.spec + script: + - tito build --test --rpm --output rpms-el7-x86_64 + - createrepo rpms-el7-x86_64 + artifacts: + paths: + - rpms-el7-x86_64/ + +tito_el8_x86_64: + stage: rpms + image: registry.gitlab.com/kraxel/rpm-package-builder:el8 + before_script: + - dnf builddep -y *.spec + script: + - tito build --test --rpm --output rpms-el8-x86_64 + - createrepo rpms-el8-x86_64 + artifacts: + paths: + - rpms-el8-x86_64/ + +tito_stream8_x86_64: + stage: rpms + image: registry.gitlab.com/kraxel/rpm-package-builder:stream8 + before_script: + - dnf builddep -y *.spec + script: + - tito build --test --rpm --output rpms-stream8-x86_64 + - createrepo rpms-stream8-x86_64 + artifacts: + paths: + - rpms-stream8-x86_64/ + +pages: + stage: repo + image: registry.gitlab.com/kraxel/rpm-package-builder:fedora + script: + - > + for dir in rpms-*; + do + item="${dir#rpms-}"; + arch="${item#*-}"; + distro="${item%%-*}"; + mkdir -p "public/${distro}/${arch}" + mkdir -p "public/${distro}/noarch" + mkdir -p "public/${distro}/src" + test -d "${dir}/${arch}" && mv -v ${dir}/${arch}/*.rpm "public/${distro}/${arch}" + test -d "${dir}/noarch" && mv -v ${dir}/noarch/*.rpm "public/${distro}/noarch" + mv -v ${dir}/*.src.rpm "public/${distro}/src" + createrepo public/${distro} + done + - > + for dir in public/*; + distro="${dir#public/}"; + name="gitlab-${CI_PROJECT_NAME}-${distro}"; + repo="public/${name}.repo"; + echo "[${name}]" > "$repo"; + echo "name=${name}" >> "$repo"; + echo "baseurl=${CI_PAGES_URL}/${distro}/" >> "$repo"; + echo "skip_if_unavailable=1" >> "$repo"; + echo "metadata_expire=10m" >> "$repo"; + echo "gpgcheck=0" >> "$repo"; + done + - tree -T "$CI_PROJECT_NAME rpms" --charset utf8 -H . public > index.html + - mv index.html public + artifacts: + paths: + - public/ |