diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-09-25 10:46:17 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-09-25 10:46:17 +0200 |
commit | 271bbd5a5cf7f21200ef6f4a90d66d389c99eee6 (patch) | |
tree | 488f3a6cc8f7fa56fc4145176b1272474a2693fd | |
parent | eb45641a75c13a2235ba1462a383fb0bdd4df122 (diff) | |
download | rpm-package-builder-271bbd5a5cf7f21200ef6f4a90d66d389c99eee6.tar.gz |
add tito include
-rw-r--r-- | README.md | 16 | ||||
-rw-r--r-- | gitlab-ci-rpms-tito.yml | 54 |
2 files changed, 68 insertions, 2 deletions
@@ -1,5 +1,17 @@ Container images for test builds and rpm package builds. -Master branch has this README.md. +Master branch has this README.md and some include files. -Each distro has its own branch. +Each distro (centos7, centos8, fedora) has its own branch. + +The include file can be used this way in .gitlab-ci.yml: + +``` +stages: + - rpms + - repo + +include: + - project: 'kraxel/rpm-package-builder' + file: 'gitlab-ci-rpms-tito.yml' +``` diff --git a/gitlab-ci-rpms-tito.yml b/gitlab-ci-rpms-tito.yml new file mode 100644 index 0000000..9f1c4c7 --- /dev/null +++ b/gitlab-ci-rpms-tito.yml @@ -0,0 +1,54 @@ +tito_fedora: + 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 + - createrepo rpms-fedora + artifacts: + paths: + - rpms-fedora/ + +tito_centos8: + 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 + artifacts: + paths: + - rpms-centos8/ + +tito_centos7: + 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 + artifacts: + paths: + - rpms-centos7/ + +pages: + stage: repo + image: registry.gitlab.com/kraxel/rpm-package-builder:fedora + dependencies: + - tito_fedora + - tito_centos8 + - tito_centos7 + script: + - mkdir public + - mv rpms-fedora public/fedora + - mv rpms-centos8 public/centos8 + - mv rpms-centos7 public/centos7 + - dnf install -y tree + - tree -T "$CI_PROJECT_NAME rpms" --charset utf8 -H . public > index.html + - mv index.html public + artifacts: + paths: + - public/ |