From 278c4c95c289a54ebc9ba13ba61f89a9b68d12ff Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 22 Mar 2021 07:59:30 +0100 Subject: multiarch --- gitlab-ci-rpms-tito.yml | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/gitlab-ci-rpms-tito.yml b/gitlab-ci-rpms-tito.yml index cd99502..7fd06e8 100644 --- a/gitlab-ci-rpms-tito.yml +++ b/gitlab-ci-rpms-tito.yml @@ -1,46 +1,58 @@ -tito_fedora: +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 - - createrepo rpms-fedora + - tito build --test --rpm --output rpms-fedora-aarch64 + - createrepo rpms-fedora-aarch64 artifacts: paths: - - rpms-fedora/ + - rpms-fedora-aarch64/ -tito_centos8: +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 - - createrepo rpms-centos8 + - tito build --test --rpm --output rpms-centos8-x86_64 + - createrepo rpms-centos8-x86_64 artifacts: paths: - - rpms-centos8/ + - rpms-centos8-x86_64/ -tito_centos7: +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 - - createrepo rpms-centos7 + - tito build --test --rpm --output rpms-centos7-x86_64 + - createrepo rpms-centos7-x86_64 artifacts: paths: - - rpms-centos7/ + - rpms-centos7-x86_64/ pages: stage: repo image: registry.gitlab.com/kraxel/rpm-package-builder:fedora -# dependencies: -# - tito_fedora -# - tito_centos8 -# - tito_centos7 script: - mkdir public - for dir in rpms-*; do mv -v $dir public/${dir#rpms-}; done -- cgit