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_centos8_x86_64: stage: rpms image: registry.gitlab.com/kraxel/rpm-package-builder:centos8 before_script: - dnf builddep -y *.spec script: - tito build --test --rpm --output rpms-centos8-x86_64 - createrepo rpms-centos8-x86_64 artifacts: paths: - rpms-centos8-x86_64/ tito_centos8s_x86_64: stage: rpms image: registry.gitlab.com/kraxel/rpm-package-builder:centos8s before_script: - dnf builddep -y *.spec script: - tito build --test --rpm --output rpms-centos8s-x86_64 - createrepo rpms-centos8s-x86_64 artifacts: paths: - rpms-centos8s-x86_64/ tito_centos7_x86_64: stage: rpms image: registry.gitlab.com/kraxel/rpm-package-builder:centos7 before_script: - yum-builddep -y *.spec script: - tito build --test --rpm --output rpms-centos7-x86_64 - createrepo rpms-centos7-x86_64 artifacts: paths: - rpms-centos7-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-}"; 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"; 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/